public function test_filter_features() { Feature::create(['name' => 'Feature 1']); Feature::create(['name' => 'Feature 2']); Feature::addNewFeatures(['Feature 2', 'Feature 3', ' Feature 3 ', 'Feature 4', 'Feature 4']); $this->assertSame(['Feature 1', 'Feature 2', 'Feature 3', 'Feature 4'], Feature::lists('name')->toArray()); }
/** * Run the database seeds. * * @return void */ public function run() { Feature::create(['name' => '4-Wheel Disc Brakes']); Feature::create(['name' => 'ABS Brakes']); Feature::create(['name' => '9 Speakers']); Feature::create(['name' => 'AM/FM Radio: Siriusxm']); Feature::create(['name' => 'Mp3 Decoder']); Feature::create(['name' => 'Security System']); }