Update Composer, update everything
This commit is contained in:
parent
ea3e94409f
commit
dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions
37
vendor/chi-teck/drupal-code-generator/templates/d8/test/browser.twig
vendored
Normal file
37
vendor/chi-teck/drupal-code-generator/templates/d8/test/browser.twig
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\Tests\{{ machine_name }}\Functional;
|
||||
|
||||
use Drupal\Tests\BrowserTestBase;
|
||||
|
||||
/**
|
||||
* Test description.
|
||||
*
|
||||
* @group {{ machine_name }}
|
||||
*/
|
||||
class {{ class }} extends BrowserTestBase {
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static $modules = ['{{ machine_name }}'];
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function setUp() {
|
||||
parent::setUp();
|
||||
// Set up the test here.
|
||||
}
|
||||
|
||||
/**
|
||||
* Test callback.
|
||||
*/
|
||||
public function testSomething() {
|
||||
$admin_user = $this->drupalCreateUser(['access administration pages']);
|
||||
$this->drupalLogin($admin_user);
|
||||
$this->drupalGet('admin');
|
||||
$this->assertSession()->elementExists('xpath', '//h1[text() = "Administration"]');
|
||||
}
|
||||
|
||||
}
|
Reference in a new issue