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