diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2019-11-06 12:29:58 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2019-11-06 12:29:58 +0100 |
commit | 867d720f150dc5a728a092f8d66d8b1c1a5efc5a (patch) | |
tree | 633d4e4fcb86bac3b3618346608408ad667f1ad6 /tests/Unit/ApplicationTest.php | |
parent | 109f112131fd13b5b7c7f26bc9413071dad566f1 (diff) |
Tests: Replaced setMethods as it is deprecated
Diffstat (limited to 'tests/Unit/ApplicationTest.php')
-rw-r--r-- | tests/Unit/ApplicationTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
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; |