From 07ca1d79030c04cdce4e5732b2a98b32933ba3e1 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Wed, 19 Jul 2023 10:38:22 +0200 Subject: [PATCH] Fix mailman type test --- tests/Feature/Mailgateway/MailmanTypeTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/Feature/Mailgateway/MailmanTypeTest.php b/tests/Feature/Mailgateway/MailmanTypeTest.php index 6eafb182..487bd882 100644 --- a/tests/Feature/Mailgateway/MailmanTypeTest.php +++ b/tests/Feature/Mailgateway/MailmanTypeTest.php @@ -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());