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 a874716 commit 33aba0cCopy full SHA for 33aba0c
1 file changed
tests/Unit/MessageQueryTest.php
@@ -479,6 +479,10 @@ function query(?Mailbox $mailbox = null): MessageQuery
479
expect($count)->toBe(0);
480
});
481
482
+test('sortBy fails with incorrect string key', function () {
483
+ query()->sortBy('invalid');
484
+})->throws(ValueError::class);
485
+
486
test('sortBy sends correct sort command with ascending order', function () {
487
$stream = new FakeStream;
488
$stream->open();
0 commit comments