X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FTests%2FController%2FEntryControllerTest.php;h=0fcf323cdffd57873e38a6fcd7a782842ecc04f2;hb=0d42217e4e8210dd2cf86f35ba9662ca02c8a2dc;hp=5512d6e1bd08f80860578226efa57d6c541bc412;hpb=d2b4f01d7435e8a8f99b15a2487916427c04e58d;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php index 5512d6e1..0fcf323c 100644 --- a/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php +++ b/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php @@ -28,14 +28,14 @@ class EntryControllerTest extends WallabagCoreTestCase $client->followRedirect(); $this->assertEquals(200, $client->getResponse()->getStatusCode()); - $this->assertContains('We\'ll accompany you to visit wallabag', $client->getResponse()->getContent()); + $this->assertContains('quickstart.intro.paragraph_1', $client->getResponse()->getContent()); // Test if quickstart is disabled when user has 1 entry $crawler = $client->request('GET', '/new'); $this->assertEquals(200, $client->getResponse()->getStatusCode()); - $form = $crawler->filter('button[type=submit]')->form(); + $form = $crawler->filter('form[name=entry]')->form(); $data = array( 'entry[url]' => $this->url, @@ -46,7 +46,7 @@ class EntryControllerTest extends WallabagCoreTestCase $client->followRedirect(); $client->request('GET', '/unread/list'); - $this->assertContains('There is one entry.', $client->getResponse()->getContent()); + $this->assertContains('entry.list.number_on_the_page', $client->getResponse()->getContent()); } public function testGetNew() @@ -59,7 +59,7 @@ class EntryControllerTest extends WallabagCoreTestCase $this->assertEquals(200, $client->getResponse()->getStatusCode()); $this->assertCount(1, $crawler->filter('input[type=url]')); - $this->assertCount(1, $crawler->filter('button[type=submit]')); + $this->assertCount(1, $crawler->filter('form[name=entry]')); } public function testPostNewViaBookmarklet() @@ -96,7 +96,7 @@ class EntryControllerTest extends WallabagCoreTestCase $this->assertEquals(200, $client->getResponse()->getStatusCode()); - $form = $crawler->filter('button[type=submit]')->form(); + $form = $crawler->filter('form[name=entry]')->form(); $crawler = $client->submit($form); @@ -117,7 +117,7 @@ class EntryControllerTest extends WallabagCoreTestCase $this->assertEquals(200, $client->getResponse()->getStatusCode()); - $form = $crawler->filter('button[type=submit]')->form(); + $form = $crawler->filter('form[name=entry]')->form(); $data = array( 'entry[url]' => $this->url, @@ -146,7 +146,7 @@ class EntryControllerTest extends WallabagCoreTestCase $this->assertEquals(200, $client->getResponse()->getStatusCode()); - $form = $crawler->filter('button[type=submit]')->form(); + $form = $crawler->filter('form[name=entry]')->form(); $data = array( 'entry[url]' => $this->url, @@ -170,7 +170,7 @@ class EntryControllerTest extends WallabagCoreTestCase $this->assertEquals(200, $client->getResponse()->getStatusCode()); - $form = $crawler->filter('button[type=submit]')->form(); + $form = $crawler->filter('form[name=entry]')->form(); $data = array( 'entry[url]' => $url = 'https://github.com/wallabag/wallabag',