Skip to content

Commit

Permalink
Use BTB instead of WTB (#3285)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnuget authored and jmolivas committed Apr 28, 2017
1 parent 021cd5d commit 64d2487
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Generator/ModuleGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function generate(
if ($test) {
$this->renderFile(
'module/src/Tests/load-test.php.twig',
$dir . '/src/Tests/' . 'LoadTest.php',
$dir . '/tests/src/Functional/' . 'LoadTest.php',
$parameters
);
}
Expand Down
8 changes: 4 additions & 4 deletions templates/module/src/Tests/load-test.php.twig
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{% extends "base/class.php.twig" %}

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

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

{% block use_class %}
use Drupal\Core\Url;
use Drupal\simpletest\WebTestBase;
use Drupal\Tests\BrowserTestBase;
{% endblock %}

{% block class_declaration %}
Expand All @@ -19,7 +19,7 @@ use Drupal\simpletest\WebTestBase;
*
* @group {{ machine_name }}
*/
class LoadTest extends WebTestBase{% endblock %}
class LoadTest extends BrowserTestBase {% endblock %}
{% block class_methods %}
/**
* Modules to enable.
Expand Down

0 comments on commit 64d2487

Please sign in to comment.