diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2019-01-18 15:56:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-18 15:56:39 +0100 |
commit | 6bfbf16eeb0004fcac6d2d2507e3d7d8b4dc3c1f (patch) | |
tree | b4f38bf4a01580f5f7218440e7054688d7178e53 /tests/Wallabag/ApiBundle | |
parent | 8445ad4790ff4f3f9759f9bfa0d503ad5654e30e (diff) | |
parent | 1e0d8ad7b728f6fb2cd886526b0fb84ef803e84f (diff) | |
download | wallabag-6bfbf16eeb0004fcac6d2d2507e3d7d8b4dc3c1f.tar.gz wallabag-6bfbf16eeb0004fcac6d2d2507e3d7d8b4dc3c1f.tar.zst wallabag-6bfbf16eeb0004fcac6d2d2507e3d7d8b4dc3c1f.zip |
Merge pull request #3859 from wallabag/phpstan
Enable PHPStan
Diffstat (limited to 'tests/Wallabag/ApiBundle')
-rw-r--r-- | tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php index 1a41338c..0b0c0276 100644 --- a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php +++ b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php | |||
@@ -794,7 +794,7 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
794 | $content = json_decode($this->client->getResponse()->getContent(), true); | 794 | $content = json_decode($this->client->getResponse()->getContent(), true); |
795 | 795 | ||
796 | $this->assertArrayHasKey('tags', $content); | 796 | $this->assertArrayHasKey('tags', $content); |
797 | $this->assertSame($nbTags + 3, \count($content['tags'])); | 797 | $this->assertCount($nbTags + 3, $content['tags']); |
798 | 798 | ||
799 | $entryDB = $this->client->getContainer() | 799 | $entryDB = $this->client->getContainer() |
800 | ->get('doctrine.orm.entity_manager') | 800 | ->get('doctrine.orm.entity_manager') |
@@ -834,7 +834,7 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
834 | $content = json_decode($this->client->getResponse()->getContent(), true); | 834 | $content = json_decode($this->client->getResponse()->getContent(), true); |
835 | 835 | ||
836 | $this->assertArrayHasKey('tags', $content); | 836 | $this->assertArrayHasKey('tags', $content); |
837 | $this->assertSame($nbTags - 1, \count($content['tags'])); | 837 | $this->assertCount($nbTags - 1, $content['tags']); |
838 | } | 838 | } |
839 | 839 | ||
840 | public function testSaveIsArchivedAfterPost() | 840 | public function testSaveIsArchivedAfterPost() |