function UserLoginHttpTest::testLogin
Tests user session life cycle.
1 method overrides UserLoginHttpTest::testLogin()
- UserHalLoginHttpTest::testLogin in core/
modules/ hal/ tests/ src/ Functional/ user/ UserHalLoginHttpTest.php - Tests user session life cycle.
File
-
core/
modules/ user/ tests/ src/ Functional/ UserLoginHttpTest.php, line 103
Class
- UserLoginHttpTest
- Tests login and password reset via direct HTTP.
Namespace
Drupal\Tests\user\FunctionalCode
public function testLogin() {
// Without the serialization module only JSON is supported.
$this->doTestLogin('json');
// Enable serialization so we have access to additional formats.
$this->container
->get('module_installer')
->install([
'serialization',
]);
$this->rebuildAll();
$this->doTestLogin('json');
$this->doTestLogin('xml');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.