Version 1
[yaffs-website] / web / modules / contrib / advagg / src / Tests / AdminPagesTest.php
diff --git a/web/modules/contrib/advagg/src/Tests/AdminPagesTest.php b/web/modules/contrib/advagg/src/Tests/AdminPagesTest.php
new file mode 100644 (file)
index 0000000..a54e899
--- /dev/null
@@ -0,0 +1,33 @@
+<?php
+
+namespace Drupal\advagg\Tests;
+
+use Drupal\Core\Url;
+
+/**
+ * Tests that all the admin path(s) return valid content.
+ *
+ * @ingroup advagg_tests
+ *
+ * @group advagg
+ */
+class AdminPagesTest extends AdvaggTestBase {
+
+  /**
+   * Routes to test.
+   *
+   * @var array
+   */
+  public $routes = ['advagg.settings', 'advagg.info', 'advagg.operations'];
+
+  /**
+   * Tests that the main admin path returns correct contents.
+   */
+  public function testLoad() {
+    foreach ($this->routes as $route) {
+      $this->drupalGet(Url::fromRoute($route));
+      $this->assertResponse(200);
+    }
+  }
+
+}