mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[feature/oauth] Replace spaces with tabs
PHPBB3-11673
This commit is contained in:
parent
a72951b799
commit
229d4f2fd6
1 changed files with 8 additions and 8 deletions
|
@ -74,8 +74,8 @@ class phpbb_auth_provider_oauth_token_storage_test extends phpbb_database_test_c
|
||||||
|
|
||||||
$this->setExpectedException($exception);
|
$this->setExpectedException($exception);
|
||||||
|
|
||||||
$stored_token = $this->token_storage->retrieveAccessToken();
|
$stored_token = $this->token_storage->retrieveAccessToken();
|
||||||
$this->assertEquals($token, $stored_token);
|
$this->assertEquals($token, $stored_token);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_storeAccessToken()
|
public function test_storeAccessToken()
|
||||||
|
@ -85,13 +85,13 @@ class phpbb_auth_provider_oauth_token_storage_test extends phpbb_database_test_c
|
||||||
|
|
||||||
// Confirm that the token is cached
|
// Confirm that the token is cached
|
||||||
$extraParams = $this->token_storage->retrieveAccessToken()->getExtraParams();
|
$extraParams = $this->token_storage->retrieveAccessToken()->getExtraParams();
|
||||||
$this->assertEquals( 'param', $extraParams['extra'] );
|
$this->assertEquals( 'param', $extraParams['extra'] );
|
||||||
$this->assertEquals( 'access', $this->token_storage->retrieveAccessToken()->getAccessToken() );
|
$this->assertEquals( 'access', $this->token_storage->retrieveAccessToken()->getAccessToken() );
|
||||||
|
|
||||||
// Test that the token is stored in the database
|
// Test that the token is stored in the database
|
||||||
$sql = 'SELECT oauth_token FROM phpbb_oauth_tokens
|
$sql = 'SELECT oauth_token FROM phpbb_oauth_tokens
|
||||||
WHERE session_id = \'' . $this->session_id . '\'';
|
WHERE session_id = \'' . $this->session_id . '\'';
|
||||||
$result = $this->db->sql_query($sql);
|
$result = $this->db->sql_query($sql);
|
||||||
$row = $this->db->sql_fetchrow($result);
|
$row = $this->db->sql_fetchrow($result);
|
||||||
$this->db->sql_freeresult($result);
|
$this->db->sql_freeresult($result);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue