Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class YubikeyFormTest extends SapphireTest |
||
12 | { |
||
13 | |||
14 | public function testBackURL() |
||
15 | { |
||
16 | $backURL = '/test/url'; |
||
17 | $request = new HTTPRequest('GET', '/', ['BackURL' => $backURL]); |
||
18 | $controller = Controller::curr(); |
||
19 | $controller->setRequest($request); |
||
20 | $form = YubikeyForm::create($controller); |
||
21 | |||
22 | $fields = $form->getFormFields(); |
||
23 | |||
24 | $this->assertNotNull($fields->dataFieldByName('BackURL')); |
||
25 | |||
26 | } |
||
27 | |||
28 | public function testAuthenticatorName() |
||
33 | } |
||
34 | |||
35 | } |