Maybe the names are what's breaking it?

This commit is contained in:
snipe 2016-04-13 01:58:46 -07:00
parent 20876a4502
commit e59d19865d
2 changed files with 2 additions and 2 deletions

View file

@ -105,7 +105,7 @@ $factory->defineAs(App\Models\Depreciation::class, 'depreciation', function (Fak
];
});
$factory->defineAs(App\Models\Accessory::class, 'accessory', function (Faker\Generator $faker) {
$factory->define(App\Models\Accessory::class, function (Faker\Generator $faker) {
return [
'name' => $faker->text(20),
'category_id' => $faker->numberBetween(11,15),

View file

@ -15,7 +15,7 @@ class AccessoryTest extends \Codeception\TestCase\Test
public function testAccessoryAdd()
{
$accessory = factory(\App\Models\Accessory::class, 'accessory')->make();
$accessory = factory(Accessory::class)->make();
$values = [
'name' => $accessory->name,
'category_id' => $accessory->category_id,