diff options
author | Sean Molenaar <sean@m2mobi.com> | 2018-10-01 10:07:57 +0200 |
---|---|---|
committer | Sean Molenaar <sean@m2mobi.com> | 2018-10-02 14:33:09 +0200 |
commit | fa5f07ba9a77959796c3c7a4851f2f2fe1051afa (patch) | |
tree | c0eedead6788614b886940f892f23c6537368a19 /tests/Unit/Service/ItemServiceTest.php | |
parent | c36b0a95685cb0daa3fce9d743b7610a5cfe50ed (diff) |
Put back old tests for stable nextcloud version
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); |