public function test_cannot_activate_with_invalid_code() { $this->setExpectedException('Maatwebsite\\Usher\\Exceptions\\InvalidActiviationCodeException'); $this->entity->activate(new ActivationCode('wrong')); }