Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function testGetCategories() { |
||
19 | $behaviors = Behavior::getCategories(); |
||
|
|||
20 | |||
21 | expect('getCategories should return an array of 7 categories', $this->assertEquals(count($behaviors), 7)); |
||
22 | |||
23 | foreach($behaviors as $behavior) { |
||
24 | expect('this behavior to have a "name" key', $this->assertArrayHasKey('name', $behavior)); |
||
25 | expect('this behavior to have a "behavior_count" key', $this->assertArrayHasKey('behavior_count', $behavior)); |
||
26 | expect('this behavior to have a "category_id" key', $this->assertArrayHasKey('category_id', $behavior)); |
||
27 | } |
||
39 |