@@ -340,10 +340,10 @@ discard block |
||
340 | 340 | $this |
341 | 341 | ->if($repository->findBy(['section' => $section1])) |
342 | 342 | // ->then(ldd(iterator_to_array($arrayAdapter->getItems()))) |
343 | - ->then |
|
344 | - ->mock($this->mockedRestClient) |
|
345 | - ->call('get') |
|
346 | - ->withArguments('/sections?section=%2Fsections%2F1')->once() |
|
343 | + ->then |
|
344 | + ->mock($this->mockedRestClient) |
|
345 | + ->call('get') |
|
346 | + ->withArguments('/sections?section=%2Fsections%2F1')->once() |
|
347 | 347 | |
348 | 348 | ->if($repository->findAll()) |
349 | 349 | // ->then(ldd(iterator_to_array($arrayAdapter->getItems()))) |
@@ -351,11 +351,11 @@ discard block |
||
351 | 351 | ->boolean($arrayAdapter->hasItem('test_prefix__sections_1')) |
352 | 352 | ->isTrue() |
353 | 353 | |
354 | - ->if($repository->find(1)) |
|
355 | - ->then |
|
356 | - ->mock($this->mockedRestClient) |
|
357 | - ->call('get') |
|
358 | - ->withArguments('/sections/1')->never() |
|
354 | + ->if($repository->find(1)) |
|
355 | + ->then |
|
356 | + ->mock($this->mockedRestClient) |
|
357 | + ->call('get') |
|
358 | + ->withArguments('/sections/1')->never() |
|
359 | 359 | |
360 | 360 | // after update |
361 | 361 | ->if($repository->update($section1)) |