Beispiel #1
0
 public function test_can_restore_rows_from_deleted()
 {
     $category = Category::create(['name' => 'Category Test', 'active' => true]);
     $category->delete();
     $category->restore();
     $category = Category::find(1);
     $this->assertEquals(1, $category->id);
     $this->assertEquals('Category Test', $category->name);
 }