Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 10b7da1

Browse files
Add test to check amLoggedAs persists between requests for Authenticable objects
1 parent 4055050 commit 10b7da1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎tests/functional/AuthCest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ public function loginUsingUserRecord(FunctionalTester $I)
2525

2626
$I->seeCurrentUrlEquals(PostsPage::$url);
2727
$I->seeAuthentication();
28+
29+
// Login should persist between requests
30+
$I->amOnPage(PostsPage::$url);
31+
32+
$I->seeAuthentication();
2833
}
2934

3035
public function loginUsingCredentials(FunctionalTester $I)
@@ -36,6 +41,11 @@ public function loginUsingCredentials(FunctionalTester $I)
3641

3742
$I->seeCurrentUrlEquals(PostsPage::$url);
3843
$I->seeAuthentication();
44+
45+
// Login should persist between requests
46+
$I->amOnPage(PostsPage::$url);
47+
48+
$I->seeAuthentication();
3949
}
4050

4151
public function secureRouteWithoutAuthenticatedUser(FunctionalTester $I)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /