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