Skip to content

Commit

Permalink
[generate:module] Fix test module machine_name. (#2818)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas committed Oct 15, 2016
1 parent 1788496 commit 961d9c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/module/src/Tests/load-test.php.twig
@@ -1,11 +1,11 @@
{% extends "base/class.php.twig" %}

{% block file_path %}
\Drupal\{{ module }}\Tests\LoadTest
\Drupal\{{ machine_name }}\Tests\LoadTest
{% endblock %}

{% block namespace_class %}
namespace Drupal\{{ module }}\Tests;
namespace Drupal\{{ machine_name }}\Tests;
{% endblock %}

{% block use_class %}
Expand All @@ -17,7 +17,7 @@ use Drupal\simpletest\WebTestBase;
/**
* Simple test to ensure that main page loads with module enabled.
*
* @group {{ module }}
* @group {{ machine_name }}
*/
class LoadTest extends WebTestBase{% endblock %}
{% block class_methods %}
Expand All @@ -26,7 +26,7 @@ class LoadTest extends WebTestBase{% endblock %}
*
* @var array
*/
public static $modules = ['{{ module }}'];
public static $modules = ['{{ machine_name }}'];

/**
* A user with permission to administer site configuration.
Expand Down

0 comments on commit 961d9c3

Please sign in to comment.