File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 44use DirectoryTree \ImapEngine \MessageQueryInterface ;
55use 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 ;
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 ([
Original file line number Diff line number Diff line change 44use DirectoryTree \ImapEngine \Laravel \Commands \WatchMailbox ;
55use 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 (
Original file line number Diff line number Diff line change 1313
1414use 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 ,
You can’t perform that action at this time.
0 commit comments