public function testInsert() { Car::insert(array(array('id' => '20', 'name' => 'Car20', 'manufactor_id' => 1, 'owner_id' => 1))); $count = Car::count(); $this->assertEquals(5, $count, 'Car must be Inserted'); }
/** * @engine isolate * @dataProvider createAndSaveRawModelWithOneToManyRelation */ public function testCount($testBrand, $testCars, $resultBDD) { $this->integer(\Car::count())->isEqualTo(3); }