Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Commit 91b15a1

Browse files
Use constants also for expected value
1 parent a335ed8 commit 91b15a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Helpers/FacebookRedirectLoginHelperTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ public function testAnAccessTokenCanBeObtainedFromRedirect()
105105
$accessToken = $this->redirectLoginHelper->getAccessToken($fullUrl);
106106

107107
// code and state should be stripped from the URL
108-
$expectedUrl = self::REDIRECT_URL . '?some_param=blah';
108+
$expectedUrl = self::REDIRECT_URL . '?' . static::FOO_PARAM;
109109

110-
$this->assertEquals('foo_token_from_code|foo_code|' . $expectedUrl, $accessToken->getValue());
110+
$this->assertEquals('foo_token_from_code|' . static::FOO_CODE . '|' . $expectedUrl, $accessToken->getValue());
111111
}
112112

113113
public function testACustomCsprsgCanBeInjected()

0 commit comments

Comments
 (0)