initial commit
This commit is contained in:
20
vendor/symfony/maker-bundle/templates/test/PantherTestCase.tpl.php
vendored
Normal file
20
vendor/symfony/maker-bundle/templates/test/PantherTestCase.tpl.php
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?= "<?php\n" ?>
|
||||
|
||||
namespace <?= $namespace; ?>;
|
||||
|
||||
use Symfony\Component\Panther\PantherTestCase;
|
||||
|
||||
class <?= $class_name ?> extends PantherTestCase
|
||||
{
|
||||
public function testSomething(): void
|
||||
{
|
||||
$client = static::createPantherClient();
|
||||
$crawler = $client->request('GET', '/');
|
||||
|
||||
<?php if ($web_assertions_are_available): ?>
|
||||
$this->assertSelectorTextContains('h1', 'Hello World');
|
||||
<?php else: ?>
|
||||
$this->assertStringContainsString('Hello World', $crawler->filter('h1')->text());
|
||||
<?php endif ?>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user