public function ChildLoginTest::testLoginPage in Bakery Single Sign-On System 8.2
File
- tests/
src/ Functional/ ChildLoginTest.php, line 83
Class
Namespace
Drupal\Tests\bakery\FunctionalCode
public function testLoginPage() {
$this
->drupalGet('user');
$assert_session = $this
->assertSession();
$assert_session
->fieldNotExists('name');
$assert_session
->fieldNotExists('pass');
$assert_session
->buttonNotExists('edit-submit');
$assert_session
->linkByHrefExists('https://example.com/user?' . UrlHelper::buildQuery([
'bd' => Url::fromRoute('user.login')
->setAbsolute(TRUE)
->toString(),
]));
}