3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-04 19:55:33 +00:00

Reverted name removal for Accessory in factory

This commit is contained in:
snipe
2016-04-13 02:19:29 -07:00
parent 3d666b27e0
commit 49405b48a3
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->define(App\Models\Accessory::class, function (Faker\Generator $faker) {
$factory->defineAs(App\Models\Accessory::class, 'accessory', 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(Accessory::class)->make();
$accessory = factory(Accessory::class, 'accessory')->make();
$values = [
'name' => $accessory->name,
'category_id' => $accessory->category_id,