Exemplo n.º 1
0
 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');
 }
Exemplo n.º 2
0
 /**
  * @engine isolate
  * @dataProvider createAndSaveRawModelWithOneToManyRelation
  */
 public function testCount($testBrand, $testCars, $resultBDD)
 {
     $this->integer(\Car::count())->isEqualTo(3);
 }