Skip to content

Commit 33aba0c

Browse files
committed
Add test
1 parent a874716 commit 33aba0c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/Unit/MessageQueryTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,10 @@ function query(?Mailbox $mailbox = null): MessageQuery
479479
expect($count)->toBe(0);
480480
});
481481

482+
test('sortBy fails with incorrect string key', function () {
483+
query()->sortBy('invalid');
484+
})->throws(ValueError::class);
485+
482486
test('sortBy sends correct sort command with ascending order', function () {
483487
$stream = new FakeStream;
484488
$stream->open();

0 commit comments

Comments
 (0)