public function BasicAuthTest::testResetWithBasicAuth in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/driver-testsuite/tests/Basic/BasicAuthTest.php \Behat\Mink\Tests\Driver\Basic\BasicAuthTest::testResetWithBasicAuth()
File
- vendor/
behat/ mink/ driver-testsuite/ tests/ Basic/ BasicAuthTest.php, line 48
Class
Namespace
Behat\Mink\Tests\Driver\BasicCode
public function testResetWithBasicAuth() {
$session = $this
->getSession();
$session
->setBasicAuth('mink-user', 'mink-password');
$session
->visit($this
->pathTo('/basic_auth.php'));
$this
->assertContains('is authenticated', $session
->getPage()
->getContent());
$session
->reset();
$session
->visit($this
->pathTo('/headers.php'));
$this
->assertNotContains('PHP_AUTH_USER', $session
->getPage()
->getContent());
}