Same name in other branches
  1. 5.0.x tests/src/Functional/AdminPagesTest.php \Drupal\Tests\advagg\Functional\AdminPagesTest
  2. 6.0.x tests/src/Functional/AdminPagesTest.php \Drupal\Tests\advagg\Functional\AdminPagesTest
  3. 8.x-3.x tests/src/Functional/AdminPagesTest.php \Drupal\Tests\advagg\Functional\AdminPagesTest
  4. 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

Related topics

7 files declare their use of AdminPagesTest
BundlerPagesTest.php in advagg_bundler/src/Tests/BundlerPagesTest.php
CdnPagesTest.php in advagg_cdn/src/Tests/CdnPagesTest.php
CssMinifyPagesTest.php in advagg_css_minify/src/Tests/CssMinifyPagesTest.php
ExtMinifyPagesTest.php in advagg_ext_minify/src/Tests/ExtMinifyPagesTest.php
JsMinifyPagesTest.php in advagg_js_minify/src/Tests/JsMinifyPagesTest.php

... See full list

File

src/Tests/AdminPagesTest.php, line 14

Namespace

Drupal\advagg\Tests
View 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

Title Sort descending Modifiers Object type Summary 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