Skip to content

Commit 3472985

Browse files
committed
Fix test
1 parent 0b7a71a commit 3472985

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Mta.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ public function __construct(
6363
) {
6464
$this->server = $server;
6565
$this->credential = $credential;
66-
$this->resources = new Resources();
6766
$this->httpClient = $httpClient?? HttpClientDiscovery::find();
6867
$this->messageFactory = $messageFactory?? MessageFactoryDiscovery::find();
68+
69+
$this->resources = new Resources();
6970
}
7071

7172
public function getResource(string $resourceName): MtaResource

tests/Functional/MtaTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ public function testItReturnResource()
5454
{
5555
$server = $this->createMock(Server::class);
5656
$credential = $this->createMock(Credential::class);
57-
$mta = new Mta($server, $credential);
57+
$client = new Client();
58+
$mta = new Mta($server, $credential, $client);
5859

5960
$this->assertInstanceOf(Resource::class, $mta->getResource('someResource'));
6061
}

0 commit comments

Comments
 (0)