function RestLoginHttpTest::providerDeprecatedUserRoutesSubscriber
Same name and namespace in other branches
- 11.x core/modules/rest/tests/src/Functional/RestLoginHttpTest.php \Drupal\Tests\rest\Functional\RestLoginHttpTest::providerDeprecatedUserRoutesSubscriber()
Return value
\Generator Test scenarios.
File
-
core/
modules/ rest/ tests/ src/ Functional/ RestLoginHttpTest.php, line 637
Class
- RestLoginHttpTest
- Tests login and password reset via direct HTTP.
Namespace
Drupal\Tests\rest\FunctionalCode
public static function providerDeprecatedUserRoutesSubscriber() : \Generator {
yield [
'user.login_status.http',
'\\Drupal\\user\\Controller\\UserAuthenticationController::loginStatus',
'\\Drupal\\rest\\Controller\\RestAuthenticationController::loginStatus',
];
yield [
'user.pass.http',
'\\Drupal\\user\\Controller\\UserAuthenticationController::resetPassword',
'\\Drupal\\rest\\Controller\\RestAuthenticationController::resetPassword',
];
yield [
'user.login.http',
'\\Drupal\\user\\Controller\\UserAuthenticationController::login',
'\\Drupal\\rest\\Controller\\RestAuthenticationController::login',
];
yield [
'user.logout.http',
'\\Drupal\\user\\Controller\\UserAuthenticationController::logout',
'\\Drupal\\rest\\Controller\\RestAuthenticationController::logout',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.