public function itReturnsFalseWhenActionIsMap() { $this->assertTrue($this->user->isActionAllowed('map')); }
public function itThrowsAnExceptionIfUserCannotBeCreated() { stub($this->user_manager)->createAccount()->returns(false); $this->expectException('User\\XML\\Import\\UserCannotBeCreatedException'); $this->user->process($this->user_manager, $this->logger); }