Exemple #1
0
 /** @test */
 public function should_respect_default_values()
 {
     $fieldConfig = $this->_getFieldConfig();
     $defaults = array('created' => '1975-04-11 12:40:12', 'is_featured' => 0, 'name' => 'Henk');
     $faker = new Garp_Model_Db_Faker();
     $fakeRow = $faker->createFakeRow($fieldConfig, $defaults);
     $subset = array_get_subset($fakeRow, array_keys($defaults));
     $this->assertEquals($defaults, $subset);
 }
Exemple #2
0
 protected function _createGibberish($fields)
 {
     $faker = new Garp_Model_Db_Faker();
     return $faker->createFakeRow($fields);
 }