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

Sujets associés

5 files declare their use of AdminPagesTest
CssMinifyPagesTest.php dans advagg_css_minify/tests/src/Functional/CssMinifyPagesTest.php
ExtMinifyPagesTest.php dans advagg_ext_minify/tests/src/Functional/ExtMinifyPagesTest.php
JsMinifyPagesTest.php dans advagg_js_minify/tests/src/Functional/JsMinifyPagesTest.php
ModifierPagesTest.php dans advagg_mod/tests/src/Functional/ModifierPagesTest.php
ValidatorPagesTest.php dans advagg_validator/tests/src/Functional/ValidatorPagesTest.php

Fichier

tests/src/Functional/AdminPagesTest.php, line 14

Namespace

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

Titre Trier par ordre décroissant Modifiers Object type Résumé 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