Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / test / browser.twig
index d2028ec0e84b363b76fc9c0fda90ddd3d0911d61..239e41da32de5e20856cd1ca992aae7936e26a41 100644 (file)
@@ -14,16 +14,24 @@ class {{ class }} extends BrowserTestBase {
   /**
    * {@inheritdoc}
    */
-  public static $modules = ['node'];
+  public static $modules = ['{{ machine_name }}'];
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function setUp() {
+    parent::setUp();
+    // Set up the test here.
+  }
 
   /**
    * Test callback.
    */
-  public function testContentPage() {
-    $admin_user = $this->drupalCreateUser(['access content overview']);
+  public function testSomething() {
+    $admin_user = $this->drupalCreateUser(['access administration pages']);
     $this->drupalLogin($admin_user);
-    $this->drupalGet('admin/content');
-    $this->assertSession()->elementExists('xpath', '//h1[text() = "Content"]');
+    $this->drupalGet('admin');
+    $this->assertSession()->elementExists('xpath', '//h1[text() = "Administration"]');
   }
 
 }