Skip to content

Commit eec855c

Browse files
committed
Update tests
1 parent d033de9 commit eec855c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tests/Commands/ConfigureIdleQueryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use DirectoryTree\ImapEngine\MessageQueryInterface;
55
use DirectoryTree\ImapEngine\Testing\FakeFolder;
66

7-
test('it does nothing when "with" is empty', function () {
7+
it('does nothing when "with" is empty', function () {
88
$folder = new FakeFolder;
99

1010
$configure = new ConfigureIdleQuery;
@@ -14,7 +14,7 @@
1414
expect($query)->toBeInstanceOf(MessageQueryInterface::class);
1515
});
1616

17-
test('it configures query when "with" is present', function () {
17+
it('configures query when "with" is present', function () {
1818
$folder = new FakeFolder;
1919

2020
$configure = new ConfigureIdleQuery([

tests/Commands/HandleMessageReceivedTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use DirectoryTree\ImapEngine\Laravel\Commands\WatchMailbox;
55
use DirectoryTree\ImapEngine\Testing\FakeMessage;
66

7-
test('it dispatches event', function () {
7+
it('dispatches event', function () {
88
$command = mock(WatchMailbox::class);
99

1010
$command->shouldReceive('info')->once()->with(

tests/Commands/WatchMailboxTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313

1414
use function Pest\Laravel\artisan;
1515

16-
test('it throws exception when mailbox is not configured', function () {
16+
it('throws exception when mailbox is not configured', function () {
1717
artisan(WatchMailbox::class, ['mailbox' => 'invalid']);
1818
})->throws(
1919
InvalidArgumentException::class,
2020
'Mailbox [invalid] is not defined. Please check your IMAP configuration.'
2121
);
2222

23-
test('it can watch mailbox', function () {
23+
it('can watch mailbox', function () {
2424
Config::set('imap.mailboxes.test', [
2525
'host' => 'localhost',
2626
'port' => 993,

0 commit comments

Comments
 (0)