make(['category_type' => 'asset']); $values = [ 'name' => $category->name, 'category_type' => $category->category_type, 'require_acceptance' => true, 'use_default_eula' => false ]; Category::create($values); $this->tester->seeRecord('categories', $values); } public function testAccessoryCategoryAdd() { $category = factory(Category::class, 'category')->make(['category_type' => 'accessory']); $values = [ 'name' => $category->name, 'category_type' => $category->category_type, 'require_acceptance' => true, 'use_default_eula' => false ]; Category::create($values); $this->tester->seeRecord('categories', $values); } }