From 5614df19cf3ed2be9d56853e5441412d4d09cff4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolas=20L=C5=93uillet?= Date: Fri, 12 Jan 2018 10:37:13 +0100 Subject: [PATCH] Fixed tests --- .../ApiBundle/Controller/DeveloperControllerTest.php | 2 +- .../Wallabag/CoreBundle/Controller/EntryControllerTest.php | 4 ++-- .../ImportBundle/Controller/PocketControllerTest.php | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/Wallabag/ApiBundle/Controller/DeveloperControllerTest.php b/tests/Wallabag/ApiBundle/Controller/DeveloperControllerTest.php index e9e5ee3b..35de47f9 100644 --- a/tests/Wallabag/ApiBundle/Controller/DeveloperControllerTest.php +++ b/tests/Wallabag/ApiBundle/Controller/DeveloperControllerTest.php @@ -17,7 +17,7 @@ class DeveloperControllerTest extends WallabagCoreTestCase $crawler = $client->request('GET', '/developer/client/create'); $this->assertSame(200, $client->getResponse()->getStatusCode()); - $form = $crawler->filter('button[type=submit]')->form(); + $form = $crawler->filter('button[id=client_save]')->form(); $data = [ 'client[name]' => 'My app', diff --git a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php index e424f152..12788366 100644 --- a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php @@ -476,7 +476,7 @@ class EntryControllerTest extends WallabagCoreTestCase $this->assertSame(200, $client->getResponse()->getStatusCode()); - $form = $crawler->filter('button[type=submit]')->form(); + $form = $crawler->filter('button[id=entry_save]')->form(); $data = [ 'entry[title]' => 'My updated title hehe :)', @@ -509,7 +509,7 @@ class EntryControllerTest extends WallabagCoreTestCase $this->assertSame(200, $client->getResponse()->getStatusCode()); - $form = $crawler->filter('button[type=submit]')->form(); + $form = $crawler->filter('button[id=entry_save]')->form(); $data = [ 'entry[title]' => 'My updated title hehe :)', diff --git a/tests/Wallabag/ImportBundle/Controller/PocketControllerTest.php b/tests/Wallabag/ImportBundle/Controller/PocketControllerTest.php index 17ce1a2a..01dd2451 100644 --- a/tests/Wallabag/ImportBundle/Controller/PocketControllerTest.php +++ b/tests/Wallabag/ImportBundle/Controller/PocketControllerTest.php @@ -14,7 +14,7 @@ class PocketControllerTest extends WallabagCoreTestCase $crawler = $client->request('GET', '/import/pocket'); $this->assertSame(200, $client->getResponse()->getStatusCode()); - $this->assertSame(1, $crawler->filter('button[type=submit]')->count()); + $this->assertSame(1, $crawler->filter('button[name=action]')->count()); } public function testImportPocketWithRabbitEnabled() @@ -27,7 +27,7 @@ class PocketControllerTest extends WallabagCoreTestCase $crawler = $client->request('GET', '/import/pocket'); $this->assertSame(200, $client->getResponse()->getStatusCode()); - $this->assertSame(1, $crawler->filter('button[type=submit]')->count()); + $this->assertSame(1, $crawler->filter('button[name=action]')->count()); $client->getContainer()->get('craue_config')->set('import_with_rabbitmq', 0); } @@ -43,7 +43,7 @@ class PocketControllerTest extends WallabagCoreTestCase $crawler = $client->request('GET', '/import/pocket'); $this->assertSame(200, $client->getResponse()->getStatusCode()); - $this->assertSame(1, $crawler->filter('button[type=submit]')->count()); + $this->assertSame(1, $crawler->filter('button[name=action]')->count()); $client->getContainer()->get('craue_config')->set('import_with_redis', 0); } -- 2.41.0