Owl\Services\UserRoleService::getAll PHP Method

getAll() public method

Get all data.
public getAll ( ) : array
return array
    public function getAll()
    {
        return $this->userRoleRepo->getAll();
    }

Usage Example

コード例 #1
0
ファイル: UserRoleServiceTest.php プロジェクト: owl/owl
 public function testShouldReturnAllData()
 {
     $this->userRoleCriteria->shouldReceive('getAll')->andReturn([]);
     $service = new UserRoleService($this->userRoleCriteria);
     $this->assertEquals([], $service->getAll());
 }