Skip to content

Commit a305618

Browse files
authored
Merge pull request #208 from meilisearch/bump-meilisearch-v0.30.0
Changes related to the next Meilisearch release (v0.30.0)
2 parents f560c1e + f4e274f commit a305618

File tree

4 files changed

+26
-3
lines changed

4 files changed

+26
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Also, see our [Documentation](https://docs.meilisearch.com/learn/tutorials/getti
4848

4949
## 🤖 Compatibility with Meilisearch
5050

51-
This package only guarantees the compatibility with the [version v0.29.0 of Meilisearch](https://github.com/meilisearch/meilisearch/releases/tag/v0.29.0).
51+
This package only guarantees the compatibility with the [version v0.30.0 of Meilisearch](https://github.com/meilisearch/meilisearch/releases/tag/v0.30.0).
5252

5353
## 💡 Learn More
5454

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"php": "^7.4|^8.0",
2222
"ext-json": "*",
2323
"doctrine/doctrine-bundle": "^2.4",
24-
"meilisearch/meilisearch-php": "^0.25.0",
24+
"meilisearch/meilisearch-php": "^0.26.0",
2525
"symfony/filesystem": "^4.4 || ^5.0 || ^6.0",
2626
"symfony/property-access": "^4.4 || ^5.0 || ^6.0",
2727
"symfony/serializer": "^4.4 || ^5.0 || ^6.0"

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ services:
77
stdin_open: true
88
working_dir: /home/package
99
environment:
10-
- MEILISEARCH_HOST=http://meilisearch:7700
10+
- MEILISEARCH_URL=http://meilisearch:7700
1111
depends_on:
1212
- meilisearch
1313
links:

tests/Integration/SearchTest.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,29 @@ public function testSearchImportAggregator(): void
9696
$this->assertCount(1, $results);
9797
}
9898

99+
public function testSearchPagination(): void
100+
{
101+
$testDataTitles = [];
102+
103+
for ($i = 0; $i < 5; ++$i) {
104+
$testDataTitles[] = $this->createPost()->getTitle();
105+
}
106+
107+
$command = $this->application->find('meili:import');
108+
$commandTester = new CommandTester($command);
109+
$commandTester->execute([
110+
'--indices' => $this->index->getUid(),
111+
]);
112+
113+
$searchTerm = 'Test';
114+
115+
$results = $this->searchService->search($this->objectManager, Post::class, $searchTerm, ['page' => 2, 'hitsPerPage' => 2]);
116+
$this->assertCount(2, $results);
117+
118+
$resultTitles = array_map(fn (Post $post) => $post->getTitle(), $results);
119+
$this->assertEqualsCanonicalizing(array_slice($testDataTitles, 2, 2), $resultTitles);
120+
}
121+
99122
protected function tearDown(): void
100123
{
101124
parent::tearDown();

0 commit comments

Comments
 (0)