diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2018-10-02 14:44:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-02 14:44:52 +0200 |
commit | 13fb06e5141e3433ab502565527324ad1e924d00 (patch) | |
tree | c0eedead6788614b886940f892f23c6537368a19 /tests/Unit/Service/ItemServiceTest.php | |
parent | c36b0a95685cb0daa3fce9d743b7610a5cfe50ed (diff) | |
parent | fa5f07ba9a77959796c3c7a4851f2f2fe1051afa (diff) |
Merge pull request #341 from SMillerDev/master
Put back old tests for stable nextcloud version and bump dependencies
Diffstat (limited to 'tests/Unit/Service/ItemServiceTest.php')
-rw-r--r-- | tests/Unit/Service/ItemServiceTest.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/Unit/Service/ItemServiceTest.php b/tests/Unit/Service/ItemServiceTest.php index 0f79cfd04..0ef5ce366 100644 --- a/tests/Unit/Service/ItemServiceTest.php +++ b/tests/Unit/Service/ItemServiceTest.php @@ -19,8 +19,10 @@ use \OCP\AppFramework\Db\DoesNotExistException; use \OCA\News\Db\Item; use \OCA\News\Db\FeedType; +use PHPUnit\Framework\TestCase; -class ItemServiceTest extends \PHPUnit_Framework_TestCase + +class ItemServiceTest extends TestCase { private $mapper; @@ -337,7 +339,7 @@ class ItemServiceTest extends \PHPUnit_Framework_TestCase public function testReadDoesNotExist() { - $this->setExpectedException( + $this->expectException( '\OCA\News\Service\ServiceNotFoundException' ); $this->mapper->expects($this->once()) @@ -350,7 +352,7 @@ class ItemServiceTest extends \PHPUnit_Framework_TestCase public function testStarDoesNotExist() { - $this->setExpectedException( + $this->expectException( '\OCA\News\Service\ServiceNotFoundException' ); $this->mapper->expects($this->once()) @@ -460,7 +462,7 @@ class ItemServiceTest extends \PHPUnit_Framework_TestCase ) ); - $this->setExpectedException( + $this->expectException( '\OCA\News\Service\ServiceNotFoundException' ); $this->itemService->getNewestItemId($this->user); |