| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 24 | public function testGetAllReturnsArrayOfCompanies() |
||
| 25 | { |
||
| 26 | $testMapper = $this->getTestMapper(); |
||
| 27 | $testMapper->insert(array('company_id' => 1, 'name' => 'company'), 'contact_company'); |
||
| 28 | |||
| 29 | $mapper = $this->getMapper(); |
||
| 30 | $result = $mapper->getAll(); |
||
| 31 | $this->assertTrue(is_array($result)); |
||
| 32 | $this->assertInstanceOf('\SpeckCatalog\Model\Company', $result[0]); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |