Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
13 | public function testSchemaContainsEndpoints() |
||
14 | { |
||
15 | $memberID = $this->logInWithPermission(); |
||
16 | $member = Member::get()->byID($memberID); |
||
17 | |||
18 | $field = new RegisteredMFAMethodListField('test'); |
||
19 | $field->setValue($member); |
||
20 | $schema = $field->getSchemaDataDefaults(); |
||
21 | |||
22 | $this->assertContains('register/', $schema['schema']['endpoints']['register']); |
||
23 | $this->assertContains('method/{urlSegment}', $schema['schema']['endpoints']['remove']); |
||
24 | $this->assertContains('method/{urlSegment}/default', $schema['schema']['endpoints']['setDefault']); |
||
25 | } |
||
27 |