public function testBadRelation() { $this->createUserRaw(); $this->setExpectedException(\LogicException::class); BadRelation::first()->delete(); }