public function testGetsAllUsers()
 {
     $users = array(new UserDto(1, 'f', 'l', 'e'));
     $this->userRepo->expects($this->once())->method('GetAll')->will($this->returnValue($users));
     $this->page->expects($this->once())->method('SetJsonResponse')->with($this->equalTo($users));
     $this->presenter->ProcessDataRequest('all');
 }
Beispiel #2
0
 public function ProcessDataRequest($dataRequest)
 {
     $this->_presenter->ProcessDataRequest($dataRequest);
 }