init without trunk
This commit is contained in:
parent
ed24ac4994
commit
bb809e7233
14652 changed files with 177862 additions and 94817 deletions
24
vendor/sensio/generator-bundle/Resources/skeleton/controller/ControllerTest.php.twig
vendored
Normal file
24
vendor/sensio/generator-bundle/Resources/skeleton/controller/ControllerTest.php.twig
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
namespace {{ namespace }}\Tests\Controller;
|
||||
|
||||
{% block use_statements %}
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
{% endblock use_statements %}
|
||||
|
||||
{% block class_definition %}
|
||||
class {{ controller }}ControllerTest extends WebTestCase
|
||||
{% endblock class_definition %}
|
||||
{
|
||||
{% block class_body %}
|
||||
{% for action in actions %}
|
||||
public function test{{ action.basename|capitalize }}()
|
||||
{
|
||||
$client = static::createClient();
|
||||
|
||||
$crawler = $client->request('GET', '{{ action.route }}');
|
||||
}
|
||||
|
||||
{% endfor -%}
|
||||
{% endblock class_body %}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue