| 1 | <?php |
||
| 7 | class CompanyTest extends AbstractTestCase |
||
| 8 | { |
||
| 9 | public function testFindByIdReturnsCompanyModel() |
||
| 10 | { |
||
| 11 | $testMapper = $this->getTestMapper(); |
||
| 12 | $testMapper->insert(array('company_id' => 1, 'name' => 'company'), 'contact_company'); |
||
| 13 | |||
| 14 | $mapper = $this->getMapper(); |
||
| 15 | $result = $mapper->findById(1); |
||
| 16 | $this->assertTrue($result instanceof \SpeckCatalog\Model\Company); |
||
| 17 | } |
||
| 18 | |||
| 19 | public function getMapper() |
||
| 23 | |||
| 24 | public function testGetAllReturnsArrayOfCompanies() |
||
| 34 | } |
||
| 35 |