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/Mail | |
parent | 109f112131fd13b5b7c7f26bc9413071dad566f1 (diff) |
Tests: Replaced setMethods as it is deprecated
Diffstat (limited to 'tests/Unit/Mail')
-rw-r--r-- | tests/Unit/Mail/Transport/LogTransportTest.php | 2 | ||||
-rw-r--r-- | tests/Unit/Mail/Transport/TransportTest.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/Unit/Mail/Transport/LogTransportTest.php b/tests/Unit/Mail/Transport/LogTransportTest.php index bd51d30f..6e67f648 100644 --- a/tests/Unit/Mail/Transport/LogTransportTest.php +++ b/tests/Unit/Mail/Transport/LogTransportTest.php @@ -44,7 +44,7 @@ class LogTransportTest extends TestCase /** @var LogTransport|MockObject $transport */ $transport = $this->getMockBuilder(LogTransport::class) ->setConstructorArgs(['logger' => $logger]) - ->setMethods(['allRecipients']) + ->onlyMethods(['allRecipients']) ->getMock(); $transport->expects($this->exactly(2)) ->method('allRecipients') diff --git a/tests/Unit/Mail/Transport/TransportTest.php b/tests/Unit/Mail/Transport/TransportTest.php index ac7735bb..8dd78d78 100644 --- a/tests/Unit/Mail/Transport/TransportTest.php +++ b/tests/Unit/Mail/Transport/TransportTest.php @@ -79,7 +79,7 @@ class TransportTest extends TestCase $message = $this->createMock(SimpleMessage::class); /** @var TransportImplementation|MockObject $transport */ $transport = $this->getMockBuilder(TransportImplementation::class) - ->setMethods(['allRecipients']) + ->onlyMethods(['allRecipients']) ->getMock(); $transport->expects($this->once()) ->method('allRecipients') |