
| Current Path : /var/www/html/musik/vendor/chi-teck/drupal-code-generator/templates/d8/test/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/musik/vendor/chi-teck/drupal-code-generator/templates/d8/test/browser.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}
*/
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"]');
}
}