/** * @test */ public function deleteForGhostFromGetNewGhostThrowsException() { $this->setExpectedException('InvalidArgumentException', 'This model is a memory-only dummy that must not be deleted.'); $model = $this->subject->getNewGhost(); $this->subject->delete($model); }