class UserPathTest in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/tests/src/Functional/UserPathTest.php \Drupal\Tests\views\Functional\UserPathTest
- 9 core/modules/views/tests/src/Functional/UserPathTest.php \Drupal\Tests\views\Functional\UserPathTest
Tests overriding user paths using wildcards.
@group views
Hierarchy
- class \Drupal\Tests\BrowserTestBase extends \PHPUnit\Framework\TestCase uses \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait, FunctionalTestSetupTrait, TestSetupTrait, BlockCreationTrait, ConfigTestTrait, ExtensionListTestTrait, ContentTypeCreationTrait, NodeCreationTrait, RandomGeneratorTrait, TestRequirementsTrait, PhpUnitWarnings, UiHelperTrait, UserCreationTrait, XdebugRequestTrait
- class \Drupal\Tests\views\Functional\ViewTestBase uses ViewResultAssertionTrait
- class \Drupal\Tests\views\Functional\UserPathTest
- class \Drupal\Tests\views\Functional\ViewTestBase uses ViewResultAssertionTrait
Expanded class hierarchy of UserPathTest
File
- core/
modules/ views/ tests/ src/ Functional/ UserPathTest.php, line 10
Namespace
Drupal\Tests\views\FunctionalView source
class UserPathTest extends ViewTestBase {
/**
* {@inheritdoc}
*/
protected static $modules = [
'views',
'user',
];
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* The test views to use.
*
* @var array
*/
public static $testViews = [
'test_user_path',
];
/**
* Tests if the login page is still available when using a wildcard path.
*/
public function testUserLoginPage() {
$this
->drupalGet('user/login');
$this
->assertSession()
->statusCodeEquals(200);
}
}