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