Fix mailman type test

This commit is contained in:
philipp lang 2023-07-19 10:38:22 +02:00
parent 387b0e7ec4
commit 07ca1d7903
1 changed files with 2 additions and 0 deletions

View File

@ -18,11 +18,13 @@ class MailmanTypeTest extends TestCase
$this->stubIo(MailmanService::class, function ($mock) {
Phake::when($mock)->setCredentials('https://example.com', 'user', 'secret')->thenReturn($mock);
Phake::when($mock)->check()->thenReturn(true);
Phake::when($mock)->setOwner('owner@example.com')->thenReturn($mock);
});
$type = app(MailmanType::class)->setParams([
'url' => 'https://example.com',
'user' => 'user',
'password' => 'secret',
'owner' => 'owner@example.com',
]);
$this->assertTrue($type->works());