Update Composer, update everything
This commit is contained in:
parent
ea3e94409f
commit
dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions
47
vendor/drupal/console/templates/module/Tests/Controller/controller.php.twig
vendored
Normal file
47
vendor/drupal/console/templates/module/Tests/Controller/controller.php.twig
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
{% extends "base/class.php.twig" %}
|
||||
|
||||
{% block file_path %}
|
||||
\Drupal\{{module}}\Tests\{{ class_name }}.
|
||||
{% endblock %}
|
||||
|
||||
{% block namespace_class %}
|
||||
namespace Drupal\{{module}}\Tests;
|
||||
{% endblock %}
|
||||
|
||||
{% block use_class %}
|
||||
use Drupal\simpletest\WebTestBase;
|
||||
{% endblock %}
|
||||
|
||||
{% block class_declaration %}
|
||||
/**
|
||||
* Provides automated tests for the {{module}} module.
|
||||
*/
|
||||
class {{class_name}}Test extends WebTestBase {% endblock %}
|
||||
{% block class_methods %}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function getInfo() {
|
||||
return [
|
||||
'name' => "{{module}} {{class_name}}'s controller functionality",
|
||||
'description' => 'Test Unit for module {{module}} and controller {{class_name}}.',
|
||||
'group' => 'Other',
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function setUp() {
|
||||
parent::setUp();
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests {{module}} functionality.
|
||||
*/
|
||||
public function test{{class_name}}() {
|
||||
// Check that the basic functions of module {{module}}.
|
||||
$this->assertEquals(TRUE, TRUE, 'Test Unit Generated via Drupal Console.');
|
||||
}
|
||||
{% endblock %}
|
Reference in a new issue