Last active
April 23, 2019 08:49
-
-
Save ger86/cc361b1ca651277d6aec6a1eb15e31e9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Tests; | |
use Symfony\Component\Panther\PantherTestCase; | |
class BlogPostsControllerTest extends PantherTestCase { | |
public function testShowPost() { | |
$client = static::createPantherClient(); | |
$client->followRedirects(); | |
$crawler = $client->request('GET', 'blog'); | |
$this->assertSame('My awesome blog', $crawler->filter('h1')->text()); | |
$this->assertEquals(1, $crawler->filter('.container .posts')->count()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment