diff options
author | Sean Molenaar <sean@seanmolenaar.eu> | 2020-09-28 21:07:24 +0200 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2020-09-29 13:02:03 +0200 |
commit | bc01761221384c0bbac0297d38e85bcaa6286a9a (patch) | |
tree | bea5acc2db33186982ba94a4270c9eb277c8f0b3 /tests | |
parent | d00d1ab2a28f428223e52b17052c072c64784016 (diff) |
Fix repair step and test it
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Integration/IntegrationTest.php | 7 | ||||
-rw-r--r-- | tests/Unit/Controller/JSONHttpErrorTest.php | 4 |
2 files changed, 6 insertions, 5 deletions
diff --git a/tests/Integration/IntegrationTest.php b/tests/Integration/IntegrationTest.php index 276c6c394..1135bbd2e 100644 --- a/tests/Integration/IntegrationTest.php +++ b/tests/Integration/IntegrationTest.php @@ -30,6 +30,7 @@ use OCA\News\Tests\Integration\Fixtures\FolderFixture; use OCA\News\Db\FeedMapper; use OCA\News\Db\ItemMapper; use OCA\News\Db\FolderMapper; +use Psr\Container\ContainerInterface; abstract class IntegrationTest extends \Test\TestCase @@ -67,9 +68,9 @@ abstract class IntegrationTest extends \Test\TestCase $this->setupUser($this->user, $this->userPassword); // set up database layers - $this->itemMapper = $this->container->query(ItemMapper::class); - $this->feedMapper = $this->container->query(FeedMapper::class); - $this->folderMapper = $this->container->query(FolderMapper::class); + $this->itemMapper = $this->container->get(ItemMapper::class); + $this->feedMapper = $this->container->get(FeedMapper::class); + $this->folderMapper = $this->container->get(FolderMapper::class); } protected function findItemByTitle($title) diff --git a/tests/Unit/Controller/JSONHttpErrorTest.php b/tests/Unit/Controller/JSONHttpErrorTest.php index c02b60c9e..3b48bc36e 100644 --- a/tests/Unit/Controller/JSONHttpErrorTest.php +++ b/tests/Unit/Controller/JSONHttpErrorTest.php @@ -13,13 +13,13 @@ namespace OCA\News\Tests\Unit\Controller; -use OCA\News\Controller\JSONHttpError; +use OCA\News\Controller\JSONHttpErrorTrait; use PHPUnit\Framework\TestCase; class Test { - use JSONHttpError; + use JSONHttpErrorTrait; } class JSONHttpErrorTest extends TestCase |