CI: Fix tests

main
Igor Scheller 5 years ago
parent 4f03e2fbc4
commit 154625bc8a

@ -67,15 +67,13 @@ class RendererServiceProviderTest extends ServiceProviderTest
$app = $this->getApp(['get', 'tagged']);
$engines = [$engine1, $engine2];
$this->setExpects($app, 'get', ['renderer'], $renderer);
$this->setExpects($app, 'tagged', ['renderer.engine'], $engines);
$this->setExpects($app, 'tagged', ['renderer.engine'], [$engine1, $engine2]);
$invocation = $renderer
->expects($this->exactly(count($engines)))
->method('addRenderer');
call_user_func_array([$invocation, 'withConsecutive'], $engines);
$renderer
->expects($this->exactly(2))
->method('addRenderer')
->withConsecutive([$engine1], [$engine2]);
$serviceProvider = new RendererServiceProvider($app);
$serviceProvider->boot();

@ -82,7 +82,7 @@ class TwigServiceProviderTest extends ServiceProviderTest
$twig->expects($this->exactly(2))
->method('addExtension')
->withConsecutive($firsExtension, $secondExtension);
->withConsecutive([$firsExtension], [$secondExtension]);
$serviceProvider = new TwigServiceProvider($app);
$serviceProvider->boot();

Loading…
Cancel
Save