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