Skip to content

Commit 0e46d66

Browse files
renovate[bot]ChristophWurst
authored andcommitted
fix(deps): bump bytestream/horde-imap-client from 2.34.0 to ^2.34.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent b07f5a9 commit 0e46d66

3 files changed

Lines changed: 15 additions & 18 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"arthurhoaro/favicon": "^2.0.1",
1818
"bamarni/composer-bin-plugin": "^1.8.3",
1919
"bytestream/horde-exception": "^2.2.0",
20-
"bytestream/horde-imap-client": "^2.34.0",
20+
"bytestream/horde-imap-client": "^2.34.1",
2121
"bytestream/horde-mail": "^2.7.2",
2222
"bytestream/horde-mime": "^2.14.1",
2323
"bytestream/horde-stream": "^1.7.2",

composer.lock

Lines changed: 7 additions & 7 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)