a54e899192fbbc9d96eb0c4e6421232c06382b34
[yaffs-website] / web / modules / contrib / advagg / src / Tests / AdminPagesTest.php
1 <?php
2
3 namespace Drupal\advagg\Tests;
4
5 use Drupal\Core\Url;
6
7 /**
8  * Tests that all the admin path(s) return valid content.
9  *
10  * @ingroup advagg_tests
11  *
12  * @group advagg
13  */
14 class AdminPagesTest extends AdvaggTestBase {
15
16   /**
17    * Routes to test.
18    *
19    * @var array
20    */
21   public $routes = ['advagg.settings', 'advagg.info', 'advagg.operations'];
22
23   /**
24    * Tests that the main admin path returns correct contents.
25    */
26   public function testLoad() {
27     foreach ($this->routes as $route) {
28       $this->drupalGet(Url::fromRoute($route));
29       $this->assertResponse(200);
30     }
31   }
32
33 }