@@ -32,7 +32,7 @@ class MultiStorePagesTest extends MultiStoreTestCase
32
32
/** @var CollectionFactory */
33
33
private $ pageCollectionFactory ;
34
34
35
- const ABOUT_US_PAGE_ID = 7 ;
35
+ const HOME_PAGE_ID = 2 ;
36
36
37
37
public function setUp ():void
38
38
{
@@ -70,16 +70,16 @@ public function testMultiStorePageIndices()
70
70
$ fixtureSecondStore = $ this ->storeRepository ->get ('fixture_second_store ' );
71
71
72
72
try {
73
- $ aboutUsPage = $ this ->loadPage (self ::ABOUT_US_PAGE_ID );
73
+ $ homePage = $ this ->loadPage (self ::HOME_PAGE_ID );
74
74
} catch (\Exception $ e ) {
75
75
$ this ->markTestIncomplete ('Page could not be found. ' );
76
76
}
77
77
78
78
// Setting the page only for default store
79
- $ aboutUsPage ->setStores ([$ defaultStore ->getId ()]);
80
- $ this ->pageRepository ->save ($ aboutUsPage );
79
+ $ homePage ->setStores ([$ defaultStore ->getId ()]);
80
+ $ this ->pageRepository ->save ($ homePage );
81
81
82
- $ this ->pagesIndexer ->execute ([self ::ABOUT_US_PAGE_ID ]);
82
+ $ this ->pagesIndexer ->execute ([self ::HOME_PAGE_ID ]);
83
83
$ this ->algoliaHelper ->waitLastTask ();
84
84
85
85
$ this ->assertNbOfRecordsPerStore (
@@ -129,7 +129,7 @@ protected function setupStore(StoreInterface $store, bool $enableInstantSearch =
129
129
{
130
130
// Exclude 2 pages on second store
131
131
$ excludedPages = $ store ->getCode () === 'fixture_second_store ' ?
132
- [['attribute ' => 'no-route ' ], ['attribute ' => 'home ' ]]:
132
+ [['attribute ' => 'no-route ' ], ['attribute ' => 'enable-cookies ' ]]:
133
133
[];
134
134
135
135
$ this ->setConfig (
@@ -144,8 +144,8 @@ protected function setupStore(StoreInterface $store, bool $enableInstantSearch =
144
144
public function tearDown (): void
145
145
{
146
146
// Restore page in case DB is not cleaned up
147
- $ aboutUsPage = $ this ->loadPage (self ::ABOUT_US_PAGE_ID );
148
- $ this ->resetPage ($ aboutUsPage );
147
+ $ homePage = $ this ->loadPage (self ::HOME_PAGE_ID );
148
+ $ this ->resetPage ($ homePage );
149
149
150
150
parent ::tearDown ();
151
151
}
0 commit comments