item_id = $album->id; $comment->author_id = identity::guest()->id; $comment->guest_name = "test"; $comment->guest_email = "test@test.com"; $comment->text = "text"; $comment->save(); $album->delete(); $this->assert_false(ORM::factory("comment", $comment->id)->loaded()); } }