| Total Complexity | 2 |
| Total Lines | 21 |
| 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::curr()->setRequest($request); |
||
| 19 | $form = YubikeyForm::create(); |
||
| 20 | |||
| 21 | $fields = $form->getFormFields(); |
||
| 22 | |||
| 23 | $this->assertNotNull($fields->dataFieldByName('BackURL')); |
||
| 24 | |||
| 25 | } |
||
| 26 | |||
| 27 | public function testAuthenticatorName() |
||
| 32 | } |
||
| 33 | |||
| 34 | } |