| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class BehaviorTest extends \Codeception\Test\Unit { |
||
| 16 | use Specify; |
||
| 17 | |||
| 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 | } |
||
| 28 | } |
||
| 29 | |||
| 30 | public function testGetBehavior() { |
||
| 36 | } |
||
| 37 | |||
| 39 |