summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Service/ServiceTest.php
diff options
context:
space:
mode:
authorSean Molenaar <sean@seanmolenaar.eu>2021-01-02 17:57:17 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-02-13 13:22:57 +0100
commitb4fa772bc5f23f84fc292f5d6bf884543d2bfe51 (patch)
tree8576ad3ea145f3644804e2fd93de462cfc2c2578 /tests/Unit/Service/ServiceTest.php
parentceba81060303e49b2617397397f2804516052ec9 (diff)
Remove V1 item API
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'tests/Unit/Service/ServiceTest.php')
-rw-r--r--tests/Unit/Service/ServiceTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Unit/Service/ServiceTest.php b/tests/Unit/Service/ServiceTest.php
index cfaf82c95..cc4e2604b 100644
--- a/tests/Unit/Service/ServiceTest.php
+++ b/tests/Unit/Service/ServiceTest.php
@@ -14,8 +14,8 @@
namespace OCA\News\Tests\Unit\Service;
use OCA\News\Db\Feed;
-use OCA\News\Db\ItemMapper;
use OCA\News\Db\ItemMapperV2;
+use OCA\News\Service\Exceptions\ServiceConflictException;
use OCA\News\Service\Exceptions\ServiceNotFoundException;
use OCA\News\Service\Service;
use \OCP\AppFramework\Db\DoesNotExistException;
@@ -112,7 +112,7 @@ class ServiceTest extends TestCase
->method('findFromUser')
->will($this->throwException($ex));
- $this->expectException(ServiceNotFoundException::class);
+ $this->expectException(ServiceConflictException::class);
$this->class->find('', 1);
}