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-3.x tests/src/Functional/AdminPagesTest.php \Drupal\Tests\advagg\Functional\AdminPagesTest
- 8.x-4.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\advagg\Tests\AdvaggTestBase extends \Drupal\simpletest\WebTestBase
- class \Drupal\advagg\Tests\AdminPagesTest extends \Drupal\advagg\Tests\AdvaggTestBase
Expanded class hierarchy of AdminPagesTest
Sujets associés
7 files declare their use of AdminPagesTest
- BundlerPagesTest.php dans advagg_bundler/
src/ Tests/ BundlerPagesTest.php - CdnPagesTest.php dans advagg_cdn/
src/ Tests/ CdnPagesTest.php - CssMinifyPagesTest.php dans advagg_css_minify/
src/ Tests/ CssMinifyPagesTest.php - ExtMinifyPagesTest.php dans advagg_ext_minify/
src/ Tests/ ExtMinifyPagesTest.php - JsMinifyPagesTest.php dans advagg_js_minify/
src/ Tests/ JsMinifyPagesTest.php
Fichier
-
src/
Tests/ AdminPagesTest.php, line 14
Namespace
Drupal\advagg\TestsView source
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);
}
}
}
Members
Titre Trier par ordre décroissant | Modifiers | Object type | Résumé | Overrides |
---|---|---|---|---|
AdminPagesTest::$routes | public | property | Routes to test. | 7 |
AdminPagesTest::testLoad | public | function | Tests that the main admin path returns correct contents. | |
AdvaggTestBase::$config | protected | property | Editable Advagg configuration. | |
AdvaggTestBase::$modules | public static | property | Modules to enable. | 8 |
AdvaggTestBase::$systemConfig | protected | property | Editable system configuration. | |
AdvaggTestBase::$user | protected | property | A user with permission to administer site configuration. | |
AdvaggTestBase::setUp | protected | function |