Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
7 | public function testGithubContributorsAreExcludedInAuthorsIndex() |
||
8 | { |
||
9 | $controller = new AuthorsController(); |
||
10 | |||
11 | $this->assertDOSContains( |
||
12 | [ |
||
13 | ['Name' => 'Anna Green'], |
||
14 | ['Name' => 'Stephen McKenna'], |
||
15 | ['Name' => 'Kyra South'], |
||
16 | ['Name' => 'Frank Smith'], |
||
17 | ], |
||
18 | $controller->Authors() |
||
19 | ); |
||
20 | |||
21 | $names = $controller->Authors()->map('ID', 'Name')->toArray(); |
||
22 | |||
23 | $this->assertNotContains('GitHub contributors', $names); |
||
24 | $this->assertNotContains('Github contributors', $names); |
||
25 | $this->assertNotContains('Github Contributors', $names); |
||
26 | $this->assertNotContains('GitHub Contributors', $names); |
||
27 | } |
||
28 | } |
||
29 |