Same filename and directory in other branches
  1. 6.0.x tests/src/Functional/AdminPagesTest.php 1 commentaire
  2. 8.x-2.x src/Tests/AdminPagesTest.php 1 commentaire
  3. 8.x-3.x tests/src/Functional/AdminPagesTest.php 1 commentaire
  4. 8.x-4.x tests/src/Functional/AdminPagesTest.php 1 commentaire

Namespace

Drupal\Tests\advagg\Functional

Fichier

tests/src/Functional/AdminPagesTest.php

View source
<?php

namespace Drupal\Tests\advagg\Functional;

use Drupal\Core\Url;

/**
 * Tests that all the admin path(s) return valid content.
 *
 * @ingroup advagg_tests
 *
 * @group advagg
 */
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);
        }
    }

}

Classes

Titre Deprecated Résumé
AdminPagesTest Tests that all the admin path(s) return valid content.