/** @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); }
protected function _createGibberish($fields) { $faker = new Garp_Model_Db_Faker(); return $faker->createFakeRow($fields); }