Skip to content

Commit c39e6af

Browse files
committed
Rename search index in tests
1 parent dd1388d commit c39e6af

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

tests/Fieldtypes/BelongsToFieldtypeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,13 @@ public function can_get_index_items_and_search()
174174
#[Test]
175175
public function can_get_index_items_and_search_using_a_search_index()
176176
{
177-
Config::set('statamic.search.indexes.test_search_index', [
177+
Config::set('statamic.search.indexes.test', [
178178
'driver' => 'local',
179179
'searchables' => ['runway:author'],
180180
'fields' => ['name'],
181181
]);
182182

183-
Config::set('runway.resources.StatamicRadPack\Runway\Tests\Fixtures\Models\Author.search_index', 'test_search_index');
183+
Config::set('runway.resources.StatamicRadPack\Runway\Tests\Fixtures\Models\Author.search_index', 'test');
184184

185185
Runway::discoverResources();
186186

tests/Fieldtypes/HasManyFieldtypeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,13 @@ public function can_get_index_items_and_search()
219219
#[Test]
220220
public function can_get_index_items_and_search_using_a_search_index()
221221
{
222-
Config::set('statamic.search.indexes.test_search_index', [
222+
Config::set('statamic.search.indexes.test', [
223223
'driver' => 'local',
224224
'searchables' => ['runway:post'],
225225
'fields' => ['title', 'slug'],
226226
]);
227227

228-
Config::set('runway.resources.StatamicRadPack\Runway\Tests\Fixtures\Models\Post.search_index', 'test_search_index');
228+
Config::set('runway.resources.StatamicRadPack\Runway\Tests\Fixtures\Models\Post.search_index', 'test');
229229

230230
Runway::discoverResources();
231231

tests/Http/Controllers/CP/ResourceListingControllerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,13 +246,13 @@ public function can_search_models_with_has_many_relationship()
246246
#[Test]
247247
public function can_search_using_a_search_index()
248248
{
249-
Config::set('statamic.search.indexes.test_search_index', [
249+
Config::set('statamic.search.indexes.test', [
250250
'driver' => 'local',
251251
'searchables' => ['runway:post'],
252252
'fields' => ['title', 'slug'],
253253
]);
254254

255-
Config::set('runway.resources.StatamicRadPack\Runway\Tests\Fixtures\Models\Post.search_index', 'test_search_index');
255+
Config::set('runway.resources.StatamicRadPack\Runway\Tests\Fixtures\Models\Post.search_index', 'test');
256256

257257
Runway::discoverResources();
258258

0 commit comments

Comments
 (0)