Same filename in other branches
Namespace
Drupal\advagg\TestsFile
-
src/
Tests/ AdminPagesTest.php
View source
<?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);
}
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
AdminPagesTest | Tests that all the admin path(s) return valid content. |