summaryrefslogtreecommitdiff
path: root/tests/Unit/Renderer/TwigServiceProviderTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Renderer/TwigServiceProviderTest.php')
-rw-r--r--tests/Unit/Renderer/TwigServiceProviderTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Unit/Renderer/TwigServiceProviderTest.php b/tests/Unit/Renderer/TwigServiceProviderTest.php
index ee4cd971..3f027684 100644
--- a/tests/Unit/Renderer/TwigServiceProviderTest.php
+++ b/tests/Unit/Renderer/TwigServiceProviderTest.php
@@ -48,7 +48,7 @@ class TwigServiceProviderTest extends ServiceProviderTest
/** @var TwigServiceProvider|MockObject $serviceProvider */
$serviceProvider = $this->getMockBuilder(TwigServiceProvider::class)
->setConstructorArgs([$app])
- ->setMethods(['registerTwigEngine'])
+ ->onlyMethods(['registerTwigEngine'])
->getMock();
$serviceProvider->expects($this->once())
->method('registerTwigEngine');
@@ -103,7 +103,7 @@ class TwigServiceProviderTest extends ServiceProviderTest
$config = $this->createMock(Config::class);
/** @var TwigCore|MockObject $twigCore */
$twigCore = $this->getMockBuilder(stdClass::class)
- ->setMethods(['setTimezone'])
+ ->addMethods(['setTimezone'])
->getMock();
$app = $this->getApp(['make', 'instance', 'tag', 'get']);