mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Maybe the names are what's breaking it?
This commit is contained in:
parent
20876a4502
commit
e59d19865d
|
@ -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),
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue