From 867d720f150dc5a728a092f8d66d8b1c1a5efc5a Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Wed, 6 Nov 2019 12:29:58 +0100 Subject: Tests: Replaced setMethods as it is deprecated --- tests/Unit/ApplicationTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/Unit/ApplicationTest.php') diff --git a/tests/Unit/ApplicationTest.php b/tests/Unit/ApplicationTest.php index e466ecd7..a36610cb 100644 --- a/tests/Unit/ApplicationTest.php +++ b/tests/Unit/ApplicationTest.php @@ -113,7 +113,7 @@ class ApplicationTest extends TestCase $mockClassName = $this->getMockClass(ServiceProvider::class); $serviceProvider = $this->getMockBuilder($mockClassName) ->setConstructorArgs([$app]) - ->setMethods(['register']) + ->onlyMethods(['register']) ->getMock(); $serviceProvider->expects($this->once()) @@ -132,7 +132,7 @@ class ApplicationTest extends TestCase { /** @var Application|MockObject $app */ $app = $this->getMockBuilder(Application::class) - ->setMethods(['register']) + ->onlyMethods(['register']) ->getMock(); $serviceProvider = $this->mockServiceProvider($app, ['boot']); @@ -175,7 +175,7 @@ class ApplicationTest extends TestCase { $serviceProvider = $this->getMockBuilder(ServiceProvider::class) ->setConstructorArgs([$app]) - ->setMethods($methods) + ->onlyMethods($methods) ->getMockForAbstractClass(); return $serviceProvider; -- cgit v1.2.3-54-g00ecf