Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class RegistryImportFeedControllerTest extends FunctionalTest |
||
9 | { |
||
10 | protected static $fixture_file = 'fixtures/RegistryPageTestContact.yml'; |
||
11 | |||
12 | protected static $extra_dataobjects = [ |
||
13 | RegistryPageTestContact::class, |
||
14 | ]; |
||
15 | |||
16 | public function testNonExistentClassInLatestFeedReturnsNotFound() |
||
17 | { |
||
18 | $result = $this->get('registry-feed/latest/Non-Existent-Class-Name-Here-Monkey'); |
||
19 | |||
20 | $this->assertEquals(404, $result->getStatusCode()); |
||
21 | } |
||
22 | |||
23 | public function testClassNotImplementingRegistryInterfaceReturnsNotFound() |
||
28 | } |
||
29 | |||
30 | public function testValidRegistryClassReturnsXmlFeed() |
||
35 | } |
||
36 | } |
||
37 |