| @@ 180-193 (lines=14) @@ | ||
| 177 | * |
|
| 178 | * @return array |
|
| 179 | */ |
|
| 180 | private function getTestingReservationData() |
|
| 181 | { |
|
| 182 | $nextMonday = Carbon::parse('next monday')->format('Y-m-d 11:00'); |
|
| 183 | ||
| 184 | return [ |
|
| 185 | 'date' => Carbon::createFromFormat('Y-m-d H:i', $nextMonday), |
|
| 186 | 'email' => '[email protected]', |
|
| 187 | 'phone' => '777111222', |
|
| 188 | 'street' => 'ABCDE', |
|
| 189 | 'name' => 'Vojta Svoboda', |
|
| 190 | 'message' => 'Hello.', |
|
| 191 | 'status' => $this->getDefaultStatus(), |
|
| 192 | ]; |
|
| 193 | } |
|
| 194 | ||
| 195 | /** |
|
| 196 | * Get default status object. |
|
| @@ 211-224 (lines=14) @@ | ||
| 208 | $this->assertTrue($exists); |
|
| 209 | } |
|
| 210 | ||
| 211 | private function getTestingReservationData() |
|
| 212 | { |
|
| 213 | $nextMonday = Carbon::parse('next monday')->format('d/m/Y'); |
|
| 214 | ||
| 215 | return [ |
|
| 216 | 'date' => $nextMonday, |
|
| 217 | 'time' => '11:00', |
|
| 218 | 'email' => '[email protected]', |
|
| 219 | 'phone' => '777111222', |
|
| 220 | 'street' => 'ABCDE', |
|
| 221 | 'name' => 'Vojta Svoboda', |
|
| 222 | 'message' => 'Hello.', |
|
| 223 | ]; |
|
| 224 | } |
|
| 225 | } |
|
| 226 | ||