Skip to content

Commit d1d4a7f

Browse files
authored
Merge pull request #12821 from nextcloud/backport/9999/stable5.7
[stable5.7] fix(deps): bump bytestream/horde-imap-client from 2.33.6 to ^2.34.1
2 parents 2fda499 + a80ab1a commit d1d4a7f

2 files changed

Lines changed: 13 additions & 16 deletions

File tree

composer.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/Unit/FunctionsTest.php

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
namespace OCA\Mail\Tests\Unit;
1111

1212
use ChristophWurst\Nextcloud\Testing\TestCase;
13-
use Horde_Imap_Client_Ids;
1413
use function OCA\Mail\array_flat_map;
1514
use function OCA\Mail\chunk_uid_sequence;
1615

@@ -60,21 +59,19 @@ public function testChunkShortByteRange(): void {
6059

6160
$chunks = chunk_uid_sequence($uids, 10);
6261

63-
self::assertEquals([
64-
new Horde_Imap_Client_Ids('100:101'),
65-
], $chunks);
62+
self::assertCount(1, $chunks);
63+
self::assertEquals('100:101', $chunks[0]->tostring);
6664
}
6765

6866
public function testChunkLongByteRange(): void {
6967
$uids = [100, 101, 103, 105, 106, 201, 203, 204]; // 100:101, 103, 105:106, 201, 203:2.3 -> 35 chars
7068

7169
$chunks = chunk_uid_sequence($uids, 10);
7270

73-
self::assertEquals([
74-
new Horde_Imap_Client_Ids('100:101'),
75-
new Horde_Imap_Client_Ids('103, 105'),
76-
new Horde_Imap_Client_Ids('106, 201'),
77-
new Horde_Imap_Client_Ids('203:204'),
78-
], $chunks);
71+
self::assertCount(4, $chunks);
72+
self::assertEquals('100:101', $chunks[0]->tostring);
73+
self::assertEquals('103,105', $chunks[1]->tostring);
74+
self::assertEquals('106,201', $chunks[2]->tostring);
75+
self::assertEquals('203:204', $chunks[3]->tostring);
7976
}
8077
}

0 commit comments

Comments
 (0)