Same name in other branches
- 5.0.x tests/src/Functional/AdminPagesTest.php \Drupal\Tests\advagg\Functional\AdminPagesTest
- 6.0.x tests/src/Functional/AdminPagesTest.php \Drupal\Tests\advagg\Functional\AdminPagesTest
- 8.x-2.x src/Tests/AdminPagesTest.php \Drupal\advagg\Tests\AdminPagesTest
- 8.x-3.x tests/src/Functional/AdminPagesTest.php \Drupal\Tests\advagg\Functional\AdminPagesTest
Tests that all the admin path(s) return valid content.
@group advagg
Hierarchy
- class \Drupal\Tests\advagg\functional\AdvaggFunctionalTestBase extends \Drupal\Tests\BrowserTestBase uses \Drupal\Core\StringTranslation\StringTranslationTrait
- class \Drupal\Tests\advagg\Functional\AdminPagesTest extends \Drupal\Tests\advagg\Functional\AdvaggFunctionalTestBase
Expanded class hierarchy of AdminPagesTest
Related topics
5 files declare their use of AdminPagesTest
- CssMinifyPagesTest.php in advagg_css_minify/
tests/ src/ Functional/ CssMinifyPagesTest.php - ExtMinifyPagesTest.php in advagg_ext_minify/
tests/ src/ Functional/ ExtMinifyPagesTest.php - JsMinifyPagesTest.php in advagg_js_minify/
tests/ src/ Functional/ JsMinifyPagesTest.php - ModifierPagesTest.php in advagg_mod/
tests/ src/ Functional/ ModifierPagesTest.php - ValidatorPagesTest.php in advagg_validator/
tests/ src/ Functional/ ValidatorPagesTest.php
File
-
tests/
src/ Functional/ AdminPagesTest.php, line 14
Namespace
Drupal\Tests\advagg\FunctionalView source
class AdminPagesTest extends AdvaggFunctionalTestBase {
/**
* 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->assertSession()
->statusCodeEquals(200);
}
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
AdminPagesTest::$routes | public | property | Routes to test. | 5 |
AdminPagesTest::testLoad | public | function | Tests that the main admin path returns correct contents. | |
AdvaggFunctionalTestBase::$defaultTheme | protected | property | ||
AdvaggFunctionalTestBase::$modules | protected static | property | Modules to enable. | 9 |
AdvaggFunctionalTestBase::$user | protected | property | A user with permission to administer site configuration. | |
AdvaggFunctionalTestBase::setUp | protected | function |