initial commit
This commit is contained in:
16
vendor/symfony/maker-bundle/templates/test/ApiTestCase.tpl.php
vendored
Normal file
16
vendor/symfony/maker-bundle/templates/test/ApiTestCase.tpl.php
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?= "<?php\n" ?>
|
||||
|
||||
namespace <?= $namespace; ?>;
|
||||
|
||||
use <?= $api_test_case_fqcn; ?>;
|
||||
|
||||
class <?= $class_name ?> extends ApiTestCase
|
||||
{
|
||||
public function testSomething(): void
|
||||
{
|
||||
$response = static::createClient()->request('GET', '/');
|
||||
|
||||
$this->assertResponseIsSuccessful();
|
||||
$this->assertJsonContains(['@id' => '/']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user