/** * @expectedException \Larrytech\Auth\Models\UserActivationException */ public function testSetActivationHashThrowsException() { $u = new User(); $u->activate(); $this->assertTrue($u->isActivated()); $u->setActivationHash(); }