This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/vendor/chi-teck/drupal-code-generator/templates/d8/test/browser.twig
2018-11-23 12:29:20 +00:00

38 lines
709 B
Twig

<?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"]');
}
}