Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function testGetBehavior() { |
||
31 | expect('getBehavior should return false when asked for an behavior that does not exist', $this->assertEquals(Behavior::getBehavior('id', 99999999), false)); |
||
32 | |||
33 | expect('getBehavior should return the asked-for behavior data', $this->assertEquals(Behavior::getBehavior('id', 3), ["id" => 3, "name" => "identifying fears and feelings", "category_id" => 1])); |
||
34 | |||
35 | expect('getBehavior SHOULD NOT work quite right for indexing by category_id', $this->assertEquals(Behavior::getBehavior('category_id', 3), ["id" => 28, "name" => "worry", "category_id" => 3])); |
||
36 | } |
||
39 |