forked from a64f7bb4-7358-4778-9fbe-3b882c34cc1d/v1
43 lines
788 B
Twig
43 lines
788 B
Twig
<?php
|
|
|
|
namespace Drupal\Tests\{{ machine_name }}\Functional;
|
|
|
|
use Drupal\Tests\BrowserTestBase;
|
|
|
|
/**
|
|
* Test description.
|
|
*
|
|
* @group {{ machine_name }}
|
|
*/
|
|
class {{ class }} extends BrowserTestBase {
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
protected $defaultTheme = 'stable';
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
protected static $modules = ['{{ machine_name }}'];
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
protected function setUp(): void {
|
|
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"]');
|
|
}
|
|
|
|
}
|