239e41da32de5e20856cd1ca992aae7936e26a41
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / test / browser.twig
1 <?php
2
3 namespace Drupal\Tests\{{ machine_name }}\Functional;
4
5 use Drupal\Tests\BrowserTestBase;
6
7 /**
8  * Test description.
9  *
10  * @group {{ machine_name }}
11  */
12 class {{ class }} extends BrowserTestBase {
13
14   /**
15    * {@inheritdoc}
16    */
17   public static $modules = ['{{ machine_name }}'];
18
19   /**
20    * {@inheritdoc}
21    */
22   protected function setUp() {
23     parent::setUp();
24     // Set up the test here.
25   }
26
27   /**
28    * Test callback.
29    */
30   public function testSomething() {
31     $admin_user = $this->drupalCreateUser(['access administration pages']);
32     $this->drupalLogin($admin_user);
33     $this->drupalGet('admin');
34     $this->assertSession()->elementExists('xpath', '//h1[text() = "Administration"]');
35   }
36
37 }