Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / test / browser.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/test/browser.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/test/browser.twig
new file mode 100644 (file)
index 0000000..d2028ec
--- /dev/null
@@ -0,0 +1,29 @@
+<?php
+
+namespace Drupal\Tests\{{ machine_name }}\Functional;
+
+use Drupal\Tests\BrowserTestBase;
+
+/**
+ * Test description.
+ *
+ * @group {{ machine_name }}
+ */
+class {{ class }} extends BrowserTestBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public static $modules = ['node'];
+
+  /**
+   * Test callback.
+   */
+  public function testContentPage() {
+    $admin_user = $this->drupalCreateUser(['access content overview']);
+    $this->drupalLogin($admin_user);
+    $this->drupalGet('admin/content');
+    $this->assertSession()->elementExists('xpath', '//h1[text() = "Content"]');
+  }
+
+}