public function test_check_if_category_can_be_persisted() { $category = Category::create(['name' => 'Category test', 'active' => true]); $this->assertEquals('Category test', $category->name); $category = Category::all()->first(); $this->assertEquals('Category test', $category->name); }
public function test_can_force_delete() { $category = Category::create(['name' => 'Category Test', 'active' => true]); $category->forceDelete(); $this->assertCount(0, Category::all()); }