CI: Fix tests
This commit is contained in:
parent
4f03e2fbc4
commit
154625bc8a
|
@ -67,15 +67,13 @@ class RendererServiceProviderTest extends ServiceProviderTest
|
||||||
|
|
||||||
$app = $this->getApp(['get', 'tagged']);
|
$app = $this->getApp(['get', 'tagged']);
|
||||||
|
|
||||||
$engines = [$engine1, $engine2];
|
|
||||||
|
|
||||||
$this->setExpects($app, 'get', ['renderer'], $renderer);
|
$this->setExpects($app, 'get', ['renderer'], $renderer);
|
||||||
$this->setExpects($app, 'tagged', ['renderer.engine'], $engines);
|
$this->setExpects($app, 'tagged', ['renderer.engine'], [$engine1, $engine2]);
|
||||||
|
|
||||||
$invocation = $renderer
|
$renderer
|
||||||
->expects($this->exactly(count($engines)))
|
->expects($this->exactly(2))
|
||||||
->method('addRenderer');
|
->method('addRenderer')
|
||||||
call_user_func_array([$invocation, 'withConsecutive'], $engines);
|
->withConsecutive([$engine1], [$engine2]);
|
||||||
|
|
||||||
$serviceProvider = new RendererServiceProvider($app);
|
$serviceProvider = new RendererServiceProvider($app);
|
||||||
$serviceProvider->boot();
|
$serviceProvider->boot();
|
||||||
|
|
|
@ -82,7 +82,7 @@ class TwigServiceProviderTest extends ServiceProviderTest
|
||||||
|
|
||||||
$twig->expects($this->exactly(2))
|
$twig->expects($this->exactly(2))
|
||||||
->method('addExtension')
|
->method('addExtension')
|
||||||
->withConsecutive($firsExtension, $secondExtension);
|
->withConsecutive([$firsExtension], [$secondExtension]);
|
||||||
|
|
||||||
$serviceProvider = new TwigServiceProvider($app);
|
$serviceProvider = new TwigServiceProvider($app);
|
||||||
$serviceProvider->boot();
|
$serviceProvider->boot();
|
||||||
|
|
Loading…
Reference in New Issue