diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php | 7 | ||||
-rw-r--r-- | tests/Wallabag/ImportBundle/Command/ImportCommandTest.php | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php index fcec3f3b..95c64501 100644 --- a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php +++ b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php | |||
@@ -308,6 +308,13 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
308 | $this->assertSame('application/json', $this->client->getResponse()->headers->get('Content-Type')); | 308 | $this->assertSame('application/json', $this->client->getResponse()->headers->get('Content-Type')); |
309 | } | 309 | } |
310 | 310 | ||
311 | public function testGetTaggedEntriesWithBadParams() | ||
312 | { | ||
313 | $this->client->request('GET', '/api/entries', ['tags' => ['foo', 'bar']]); | ||
314 | |||
315 | $this->assertSame(200, $this->client->getResponse()->getStatusCode()); | ||
316 | } | ||
317 | |||
311 | public function testGetDatedEntries() | 318 | public function testGetDatedEntries() |
312 | { | 319 | { |
313 | $this->client->request('GET', '/api/entries', ['since' => 1443274283]); | 320 | $this->client->request('GET', '/api/entries', ['since' => 1443274283]); |
diff --git a/tests/Wallabag/ImportBundle/Command/ImportCommandTest.php b/tests/Wallabag/ImportBundle/Command/ImportCommandTest.php index 8bed180a..30aee4d8 100644 --- a/tests/Wallabag/ImportBundle/Command/ImportCommandTest.php +++ b/tests/Wallabag/ImportBundle/Command/ImportCommandTest.php | |||
@@ -74,7 +74,7 @@ class ImportCommandTest extends WallabagCoreTestCase | |||
74 | $tester->execute([ | 74 | $tester->execute([ |
75 | 'command' => $command->getName(), | 75 | 'command' => $command->getName(), |
76 | 'username' => 'admin', | 76 | 'username' => 'admin', |
77 | 'filepath' => $application->getKernel()->getContainer()->getParameter('kernel.root_dir') . '/../tests/Wallabag/ImportBundle/fixtures/wallabag-v2-read.json', | 77 | 'filepath' => $application->getKernel()->getContainer()->getParameter('kernel.project_dir') . '/tests/Wallabag/ImportBundle/fixtures/wallabag-v2-read.json', |
78 | '--importer' => 'v2', | 78 | '--importer' => 'v2', |
79 | ]); | 79 | ]); |
80 | 80 | ||
@@ -93,7 +93,7 @@ class ImportCommandTest extends WallabagCoreTestCase | |||
93 | $tester->execute([ | 93 | $tester->execute([ |
94 | 'command' => $command->getName(), | 94 | 'command' => $command->getName(), |
95 | 'username' => 1, | 95 | 'username' => 1, |
96 | 'filepath' => $application->getKernel()->getContainer()->getParameter('kernel.root_dir') . '/../tests/Wallabag/ImportBundle/fixtures/wallabag-v2-read.json', | 96 | 'filepath' => $application->getKernel()->getContainer()->getParameter('kernel.project_dir') . '/tests/Wallabag/ImportBundle/fixtures/wallabag-v2-read.json', |
97 | '--useUserId' => true, | 97 | '--useUserId' => true, |
98 | '--importer' => 'v2', | 98 | '--importer' => 'v2', |
99 | ]); | 99 | ]); |