We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff39a48 commit d033de9Copy full SHA for d033de9
tests/ImapManagerTest.php
@@ -52,3 +52,18 @@
52
expect(fn () => $this->manager->mailbox('undefined'))
53
->toThrow(InvalidArgumentException::class, 'Mailbox [undefined] is not defined.');
54
});
55
+
56
+it('registers and retrieves a new mailbox', function () {
57
+ $this->manager->register('custom', [
58
+ 'host' => 'imap.custom.com',
59
+ 'port' => 993,
60
+ 'username' => '[email protected]',
61
+ 'password' => 'password',
62
+ 'encryption' => 'ssl',
63
+ ]);
64
65
+ $mailbox = $this->manager->mailbox('custom');
66
67
+ expect($mailbox)->toBeInstanceOf(MailboxInterface::class);
68
+ expect($mailbox)->toBeInstanceOf(Mailbox::class);
69
+});
0 commit comments