Skip to content

Commit 79e5ce8

Browse files
committed
minor #1180 [Chat][Meilisearch] Use $this-> over self:: in MessageStoreTest (OskarStark)
This PR was merged into the main branch. Discussion ---------- [Chat][Meilisearch] Use `$this->` over `self::` in `MessageStoreTest` | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Docs? | no | Issues | -- | License | MIT Commits ------- 9de2347 [Chat] Use $this-> over self:: in Meilisearch MessageStoreTest
2 parents cdbb33b + 9de2347 commit 79e5ce8

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/chat/tests/Bridge/Meilisearch/MessageStoreTest.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ public function testStoreCannotSetupOnInvalidResponse()
4141

4242
$store = new MessageStore($httpClient, 'http://127.0.0.1:7700', 'test', new MonotonicClock(), 'test');
4343

44-
self::expectException(ClientException::class);
45-
self::expectExceptionMessage('HTTP 400 returned for "http://127.0.0.1:7700/indexes".');
46-
self::expectExceptionCode(400);
44+
$this->expectException(ClientException::class);
45+
$this->expectExceptionMessage('HTTP 400 returned for "http://127.0.0.1:7700/indexes".');
46+
$this->expectExceptionCode(400);
4747
$store->setup();
4848
}
4949

@@ -110,9 +110,9 @@ public function testStoreCannotDropOnInvalidResponse()
110110

111111
$store = new MessageStore($httpClient, 'http://127.0.0.1:7700', 'test', new MonotonicClock(), 'test');
112112

113-
self::expectException(ClientException::class);
114-
self::expectExceptionMessage('HTTP 400 returned for "http://127.0.0.1:7700/indexes/test/documents".');
115-
self::expectExceptionCode(400);
113+
$this->expectException(ClientException::class);
114+
$this->expectExceptionMessage('HTTP 400 returned for "http://127.0.0.1:7700/indexes/test/documents".');
115+
$this->expectExceptionCode(400);
116116
$store->drop();
117117
}
118118

@@ -161,9 +161,9 @@ public function testStoreCannotSaveOnInvalidResponse()
161161

162162
$store = new MessageStore($httpClient, 'http://127.0.0.1:7700', 'test', new MonotonicClock(), 'test');
163163

164-
self::expectException(ClientException::class);
165-
self::expectExceptionMessage('HTTP 400 returned for "http://127.0.0.1:7700/indexes/test/documents".');
166-
self::expectExceptionCode(400);
164+
$this->expectException(ClientException::class);
165+
$this->expectExceptionMessage('HTTP 400 returned for "http://127.0.0.1:7700/indexes/test/documents".');
166+
$this->expectExceptionCode(400);
167167
$store->save(new MessageBag(Message::ofUser('Hello there')));
168168
}
169169

@@ -212,9 +212,9 @@ public function testStoreCannotLoadMessagesOnInvalidResponse()
212212

213213
$store = new MessageStore($httpClient, 'http://127.0.0.1:7700', 'test', new MonotonicClock(), 'test');
214214

215-
self::expectException(ClientException::class);
216-
self::expectExceptionMessage('HTTP 400 returned for "http://127.0.0.1:7700/indexes/test/documents/fetch".');
217-
self::expectExceptionCode(400);
215+
$this->expectException(ClientException::class);
216+
$this->expectExceptionMessage('HTTP 400 returned for "http://127.0.0.1:7700/indexes/test/documents/fetch".');
217+
$this->expectExceptionCode(400);
218218
$store->load();
219219
}
220220

0 commit comments

Comments
 (0)