| @@ 97-109 (lines=13) @@ | ||
| 94 | * |
|
| 95 | * @small |
|
| 96 | */ |
|
| 97 | public function read_ShouldFilter() |
|
| 98 | { |
|
| 99 | self::assertEquals( |
|
| 100 | [ |
|
| 101 | self::EMPLOYEE_LIST[1], |
|
| 102 | self::EMPLOYEE_LIST[8], |
|
| 103 | ], |
|
| 104 | $this->crudClient->read( |
|
| 105 | 'Employees', |
|
| 106 | ['TitleOfCourtesy' => 'Ms.', 'City' => 'Seattle'] |
|
| 107 | ) |
|
| 108 | ); |
|
| 109 | } |
|
| 110 | ||
| 111 | /** |
|
| 112 | * @test |
|
| @@ 166-181 (lines=16) @@ | ||
| 163 | * |
|
| 164 | * @small |
|
| 165 | */ |
|
| 166 | public function read_ShouldOffset() |
|
| 167 | { |
|
| 168 | self::assertEquals( |
|
| 169 | [ |
|
| 170 | self::EMPLOYEE_LIST[6], |
|
| 171 | self::EMPLOYEE_LIST[7], |
|
| 172 | ], |
|
| 173 | $this->crudClient->read( |
|
| 174 | 'Employees', |
|
| 175 | [], |
|
| 176 | [], |
|
| 177 | 2, |
|
| 178 | 5 |
|
| 179 | ) |
|
| 180 | ); |
|
| 181 | } |
|
| 182 | ||
| 183 | /** |
|
| 184 | * @test |
|