CI: Fix tests

This commit is contained in:
Igor Scheller 2019-09-17 22:16:53 +02:00
parent 4f03e2fbc4
commit 154625bc8a
2 changed files with 6 additions and 8 deletions

View File

@ -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();

View File

@ -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();