2
2
3
3
declare (strict_types=1 );
4
4
5
- namespace Meilisearch \Bundle \Test \Integration ;
5
+ namespace Meilisearch \Bundle \Tests \Integration ;
6
6
7
- use Meilisearch \Bundle \Test \BaseKernelTestCase ;
7
+ use Meilisearch \Bundle \Tests \BaseKernelTestCase ;
8
8
use Meilisearch \Client ;
9
9
use Meilisearch \Endpoints \Indexes ;
10
10
use Meilisearch \Exceptions \ApiException ;
@@ -72,25 +72,25 @@ public function testSearchImportAndClearAndDeleteWithoutIndices(): void
72
72
$ importOutput = $ importCommandTester ->getDisplay ();
73
73
74
74
$ this ->assertSame (<<<'EOD'
75
- Importing for index Meilisearch\Bundle\Test \Entity\Post
76
- Indexed 6 / 6 Meilisearch\Bundle\Test \Entity\Post entities into sf_phpunit__posts index
77
- Indexed 6 / 6 Meilisearch\Bundle\Test \Entity\Post entities into sf_phpunit__aggregated index
75
+ Importing for index Meilisearch\Bundle\Tests \Entity\Post
76
+ Indexed 6 / 6 Meilisearch\Bundle\Tests \Entity\Post entities into sf_phpunit__posts index
77
+ Indexed 6 / 6 Meilisearch\Bundle\Tests \Entity\Post entities into sf_phpunit__aggregated index
78
78
Settings updated.
79
79
Settings updated.
80
80
Settings updated.
81
- Importing for index Meilisearch\Bundle\Test \Entity\Comment
82
- Importing for index Meilisearch\Bundle\Test \Entity\Tag
83
- Indexed 6 / 6 Meilisearch\Bundle\Test \Entity\Tag entities into sf_phpunit__tags index
84
- Indexed 6 / 6 Meilisearch\Bundle\Test \Entity\Tag entities into sf_phpunit__aggregated index
85
- Importing for index Meilisearch\Bundle\Test \Entity\Link
86
- Importing for index Meilisearch\Bundle\Test \Entity\Page
87
- Indexed 6 / 6 Meilisearch\Bundle\Test \Entity\Page entities into sf_phpunit__pages index
88
- Importing for index Meilisearch\Bundle\Test \Entity\Post
89
- Indexed 6 / 6 Meilisearch\Bundle\Test \Entity\Post entities into sf_phpunit__posts index
90
- Indexed 6 / 6 Meilisearch\Bundle\Test \Entity\Post entities into sf_phpunit__aggregated index
91
- Importing for index Meilisearch\Bundle\Test \Entity\Tag
92
- Indexed 6 / 6 Meilisearch\Bundle\Test \Entity\Tag entities into sf_phpunit__tags index
93
- Indexed 6 / 6 Meilisearch\Bundle\Test \Entity\Tag entities into sf_phpunit__aggregated index
81
+ Importing for index Meilisearch\Bundle\Tests \Entity\Comment
82
+ Importing for index Meilisearch\Bundle\Tests \Entity\Tag
83
+ Indexed 6 / 6 Meilisearch\Bundle\Tests \Entity\Tag entities into sf_phpunit__tags index
84
+ Indexed 6 / 6 Meilisearch\Bundle\Tests \Entity\Tag entities into sf_phpunit__aggregated index
85
+ Importing for index Meilisearch\Bundle\Tests \Entity\Link
86
+ Importing for index Meilisearch\Bundle\Tests \Entity\Page
87
+ Indexed 6 / 6 Meilisearch\Bundle\Tests \Entity\Page entities into sf_phpunit__pages index
88
+ Importing for index Meilisearch\Bundle\Tests \Entity\Post
89
+ Indexed 6 / 6 Meilisearch\Bundle\Tests \Entity\Post entities into sf_phpunit__posts index
90
+ Indexed 6 / 6 Meilisearch\Bundle\Tests \Entity\Post entities into sf_phpunit__aggregated index
91
+ Importing for index Meilisearch\Bundle\Tests \Entity\Tag
92
+ Indexed 6 / 6 Meilisearch\Bundle\Tests \Entity\Tag entities into sf_phpunit__tags index
93
+ Indexed 6 / 6 Meilisearch\Bundle\Tests \Entity\Tag entities into sf_phpunit__aggregated index
94
94
Done!
95
95
96
96
EOD, $ importOutput );
@@ -102,12 +102,12 @@ public function testSearchImportAndClearAndDeleteWithoutIndices(): void
102
102
$ clearOutput = $ clearCommandTester ->getDisplay ();
103
103
104
104
$ this ->assertSame (<<<'EOD'
105
- Cleared sf_phpunit__posts index of Meilisearch\Bundle\Test \Entity\Post
106
- Cleared sf_phpunit__comments index of Meilisearch\Bundle\Test \Entity\Comment
107
- Cleared sf_phpunit__aggregated index of Meilisearch\Bundle\Test \Entity\ContentAggregator
108
- Cleared sf_phpunit__tags index of Meilisearch\Bundle\Test \Entity\Tag
109
- Cleared sf_phpunit__tags index of Meilisearch\Bundle\Test \Entity\Link
110
- Cleared sf_phpunit__pages index of Meilisearch\Bundle\Test \Entity\Page
105
+ Cleared sf_phpunit__posts index of Meilisearch\Bundle\Tests \Entity\Post
106
+ Cleared sf_phpunit__comments index of Meilisearch\Bundle\Tests \Entity\Comment
107
+ Cleared sf_phpunit__aggregated index of Meilisearch\Bundle\Tests \Entity\ContentAggregator
108
+ Cleared sf_phpunit__tags index of Meilisearch\Bundle\Tests \Entity\Tag
109
+ Cleared sf_phpunit__tags index of Meilisearch\Bundle\Tests \Entity\Link
110
+ Cleared sf_phpunit__pages index of Meilisearch\Bundle\Tests \Entity\Page
111
111
Done!
112
112
113
113
EOD, $ clearOutput );
@@ -145,13 +145,13 @@ public function testSearchImportWithCustomBatchSize(): void
145
145
$ importOutput = $ importCommandTester ->getDisplay ();
146
146
147
147
$ this ->assertSame (<<<'EOD'
148
- Importing for index Meilisearch\Bundle\Test \Entity\Page
149
- Indexed 2 / 2 Meilisearch\Bundle\Test \Entity\Page entities into sf_phpunit__pages index
150
- Indexed 2 / 2 Meilisearch\Bundle\Test \Entity\Page entities into sf_phpunit__pages index
151
- Indexed 2 / 2 Meilisearch\Bundle\Test \Entity\Page entities into sf_phpunit__pages index
152
- Indexed 2 / 2 Meilisearch\Bundle\Test \Entity\Page entities into sf_phpunit__pages index
153
- Indexed 2 / 2 Meilisearch\Bundle\Test \Entity\Page entities into sf_phpunit__pages index
154
- Indexed 1 / 1 Meilisearch\Bundle\Test \Entity\Page entities into sf_phpunit__pages index
148
+ Importing for index Meilisearch\Bundle\Tests \Entity\Page
149
+ Indexed 2 / 2 Meilisearch\Bundle\Tests \Entity\Page entities into sf_phpunit__pages index
150
+ Indexed 2 / 2 Meilisearch\Bundle\Tests \Entity\Page entities into sf_phpunit__pages index
151
+ Indexed 2 / 2 Meilisearch\Bundle\Tests \Entity\Page entities into sf_phpunit__pages index
152
+ Indexed 2 / 2 Meilisearch\Bundle\Tests \Entity\Page entities into sf_phpunit__pages index
153
+ Indexed 2 / 2 Meilisearch\Bundle\Tests \Entity\Page entities into sf_phpunit__pages index
154
+ Indexed 1 / 1 Meilisearch\Bundle\Tests \Entity\Page entities into sf_phpunit__pages index
155
155
Done!
156
156
157
157
EOD, $ importOutput );
@@ -171,8 +171,8 @@ public function testSearchImportWithCustomResponseTimeout(): void
171
171
]);
172
172
$ output = $ importCommandTester ->getDisplay ();
173
173
174
- $ this ->assertStringContainsString ('Importing for index Meilisearch\Bundle\Test \Entity\Page ' , $ output );
175
- $ this ->assertStringContainsString ('Indexed ' .$ i .' / ' .$ i .' Meilisearch\Bundle\Test \Entity\Page entities into sf_phpunit__pages index ' , $ output );
174
+ $ this ->assertStringContainsString ('Importing for index Meilisearch\Bundle\Tests \Entity\Page ' , $ output );
175
+ $ this ->assertStringContainsString ('Indexed ' .$ i .' / ' .$ i .' Meilisearch\Bundle\Tests \Entity\Page entities into sf_phpunit__pages index ' , $ output );
176
176
$ this ->assertStringContainsString ('Done! ' , $ output );
177
177
$ this ->assertSame (0 , $ return );
178
178
@@ -192,8 +192,8 @@ public function testSearchImportWithCustomResponseTimeout(): void
192
192
]);
193
193
$ output = $ importCommandTester ->getDisplay ();
194
194
195
- $ this ->assertStringContainsString ('Importing for index Meilisearch\Bundle\Test \Entity\Page ' , $ output );
196
- $ this ->assertStringContainsString ('Indexed ' .$ i .' / ' .$ i .' Meilisearch\Bundle\Test \Entity\Page entities into sf_phpunit__pages index ' , $ output );
195
+ $ this ->assertStringContainsString ('Importing for index Meilisearch\Bundle\Tests \Entity\Page ' , $ output );
196
+ $ this ->assertStringContainsString ('Indexed ' .$ i .' / ' .$ i .' Meilisearch\Bundle\Tests \Entity\Page entities into sf_phpunit__pages index ' , $ output );
197
197
$ this ->assertStringContainsString ('Done! ' , $ output );
198
198
$ this ->assertSame (0 , $ return );
199
199
}
@@ -216,9 +216,9 @@ public function testImportDifferentEntitiesIntoSameIndex(): void
216
216
]);
217
217
218
218
$ output = $ commandTester ->getDisplay ();
219
- $ this ->assertStringContainsString ('Importing for index Meilisearch\Bundle\Test \Entity\Tag ' , $ output );
220
- $ this ->assertStringContainsString ('Indexed ' .$ i .' / ' .$ i .' Meilisearch\Bundle\Test \Entity\Tag entities into sf_phpunit__tags index ' , $ output );
221
- $ this ->assertStringContainsString ('Indexed 2 / 2 Meilisearch\Bundle\Test \Entity\Link entities into sf_phpunit__tags index ' , $ output );
219
+ $ this ->assertStringContainsString ('Importing for index Meilisearch\Bundle\Tests \Entity\Tag ' , $ output );
220
+ $ this ->assertStringContainsString ('Indexed ' .$ i .' / ' .$ i .' Meilisearch\Bundle\Tests \Entity\Tag entities into sf_phpunit__tags index ' , $ output );
221
+ $ this ->assertStringContainsString ('Indexed 2 / 2 Meilisearch\Bundle\Tests \Entity\Link entities into sf_phpunit__tags index ' , $ output );
222
222
$ this ->assertStringContainsString ('Done! ' , $ output );
223
223
224
224
/** @var SearchResult $searchResult */
@@ -240,8 +240,8 @@ public function testSearchImportAggregator(): void
240
240
]);
241
241
242
242
$ output = $ commandTester ->getDisplay ();
243
- $ this ->assertStringContainsString ('Importing for index Meilisearch\Bundle\Test \Entity\Post ' , $ output );
244
- $ this ->assertStringContainsString ('Indexed ' .$ i .' / ' .$ i .' Meilisearch\Bundle\Test \Entity\Post entities into sf_phpunit__ ' .self ::$ indexName .' index ' , $ output );
243
+ $ this ->assertStringContainsString ('Importing for index Meilisearch\Bundle\Tests \Entity\Post ' , $ output );
244
+ $ this ->assertStringContainsString ('Indexed ' .$ i .' / ' .$ i .' Meilisearch\Bundle\Tests \Entity\Post entities into sf_phpunit__ ' .self ::$ indexName .' index ' , $ output );
245
245
$ this ->assertStringContainsString ('Done! ' , $ output );
246
246
$ this ->assertSame (0 , $ return );
247
247
}
@@ -259,8 +259,8 @@ public function testImportingIndexNameWithAndWithoutPrefix(): void
259
259
]);
260
260
261
261
$ output = $ commandTester ->getDisplay ();
262
- $ this ->assertStringContainsString ('Importing for index Meilisearch\Bundle\Test \Entity\Post ' , $ output );
263
- $ this ->assertStringContainsString ('Indexed ' .$ i .' / ' .$ i .' Meilisearch\Bundle\Test \Entity\Post entities into sf_phpunit__ ' .self ::$ indexName .' index ' , $ output );
262
+ $ this ->assertStringContainsString ('Importing for index Meilisearch\Bundle\Tests \Entity\Post ' , $ output );
263
+ $ this ->assertStringContainsString ('Indexed ' .$ i .' / ' .$ i .' Meilisearch\Bundle\Tests \Entity\Post entities into sf_phpunit__ ' .self ::$ indexName .' index ' , $ output );
264
264
$ this ->assertStringContainsString ('Done! ' , $ output );
265
265
$ this ->assertSame (0 , $ return );
266
266
@@ -278,8 +278,8 @@ public function testImportingIndexNameWithAndWithoutPrefix(): void
278
278
]);
279
279
280
280
$ output = $ commandTester ->getDisplay ();
281
- $ this ->assertStringContainsString ('Importing for index Meilisearch\Bundle\Test \Entity\Post ' , $ output );
282
- $ this ->assertStringContainsString ('Indexed ' .$ i .' / ' .$ i .' Meilisearch\Bundle\Test \Entity\Post entities into sf_phpunit__ ' .self ::$ indexName .' index ' , $ output );
281
+ $ this ->assertStringContainsString ('Importing for index Meilisearch\Bundle\Tests \Entity\Post ' , $ output );
282
+ $ this ->assertStringContainsString ('Indexed ' .$ i .' / ' .$ i .' Meilisearch\Bundle\Tests \Entity\Post entities into sf_phpunit__ ' .self ::$ indexName .' index ' , $ output );
283
283
$ this ->assertStringContainsString ('Done! ' , $ output );
284
284
$ this ->assertSame (0 , $ return );
285
285
}
@@ -293,13 +293,13 @@ public function testSearchCreateWithoutIndices(): void
293
293
$ createOutput = $ createCommandTester ->getDisplay ();
294
294
295
295
$ this ->assertSame (<<<'EOD'
296
- Creating index sf_phpunit__posts for Meilisearch\Bundle\Test \Entity\Post
297
- Creating index sf_phpunit__comments for Meilisearch\Bundle\Test \Entity\Comment
298
- Creating index sf_phpunit__tags for Meilisearch\Bundle\Test \Entity\Tag
299
- Creating index sf_phpunit__tags for Meilisearch\Bundle\Test \Entity\Link
300
- Creating index sf_phpunit__pages for Meilisearch\Bundle\Test \Entity\Page
301
- Creating index sf_phpunit__aggregated for Meilisearch\Bundle\Test \Entity\Post
302
- Creating index sf_phpunit__aggregated for Meilisearch\Bundle\Test \Entity\Tag
296
+ Creating index sf_phpunit__posts for Meilisearch\Bundle\Tests \Entity\Post
297
+ Creating index sf_phpunit__comments for Meilisearch\Bundle\Tests \Entity\Comment
298
+ Creating index sf_phpunit__tags for Meilisearch\Bundle\Tests \Entity\Tag
299
+ Creating index sf_phpunit__tags for Meilisearch\Bundle\Tests \Entity\Link
300
+ Creating index sf_phpunit__pages for Meilisearch\Bundle\Tests \Entity\Page
301
+ Creating index sf_phpunit__aggregated for Meilisearch\Bundle\Tests \Entity\Post
302
+ Creating index sf_phpunit__aggregated for Meilisearch\Bundle\Tests \Entity\Tag
303
303
Done!
304
304
305
305
EOD, $ createOutput );
@@ -316,7 +316,7 @@ public function testSearchCreateWithIndices(): void
316
316
$ createOutput = $ createCommandTester ->getDisplay ();
317
317
318
318
$ this ->assertSame (<<<'EOD'
319
- Creating index sf_phpunit__posts for Meilisearch\Bundle\Test \Entity\Post
319
+ Creating index sf_phpunit__posts for Meilisearch\Bundle\Tests \Entity\Post
320
320
Done!
321
321
322
322
EOD, $ createOutput );
0 commit comments