mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[feature/auth-refactor] Test selecting invalid provider as well
PHPBB3-9734
This commit is contained in:
parent
8b2ca35b54
commit
4bd676e4ae
1 changed files with 4 additions and 2 deletions
|
@ -21,12 +21,14 @@ class phpbb_acp_board_select_auth_method_test extends PHPUnit_Framework_TestCase
|
|||
$phpbb_container->set('auth.provider_collection', array(
|
||||
'auth.provider.acp_board_valid' => new phpbb_auth_provider_acp_board_valid,
|
||||
'auth.provider.acp_board_invalid' => new phpbb_auth_provider_acp_board_invalid,
|
||||
)
|
||||
);
|
||||
));
|
||||
|
||||
$acp_board = new acp_board();
|
||||
|
||||
$expected = '<option value="acp_board_valid" selected="selected">Acp_board_valid</option>';
|
||||
$this->assertEquals($expected, $acp_board->select_auth_method('acp_board_valid'));
|
||||
|
||||
$expected = '<option value="acp_board_valid">Acp_board_valid</option>';
|
||||
$this->assertEquals($expected, $acp_board->select_auth_method('acp_board_invalid'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue