public function test_can_restore_deleted_question() { $interrogator = new Interrogator(); $this->createTestQuestion($interrogator); $interrogator->deleteQuestion(1); $this->assertFalse(Section::first()->trashed()); $this->assertFalse(Group::first()->trashed()); $this->assertTrue(Question::withTrashed()->first()->trashed()); $interrogator->restoreQuestion(1); $this->assertFalse(Section::first()->trashed()); $this->assertFalse(Group::first()->trashed()); $this->assertFalse(Question::first()->trashed()); }