@@ -104,7 +104,11 @@ public function testGetCollection()
104104 $ pageId = 'testPageId ' ;
105105 $ url = 'testUrl ' ;
106106 $ updatedAt = 'testUpdatedAt ' ;
107- $ pageIdentifiers = ['testCmsHomePage ' , 'testCmsNoRoute ' , 'testCmsNoCookies ' ];
107+ $ pageIdentifiers = [
108+ 'testCmsHomePage|ID ' => 'testCmsHomePage ' ,
109+ 'testCmsNoRoute ' => 'testCmsNoRoute ' ,
110+ 'testCmsNoCookies ' => 'testCmsNoCookies ' ,
111+ ];
108112 $ storeId = 1 ;
109113 $ linkField = 'testLinkField ' ;
110114 $ expectedPage = new DataObject ();
@@ -147,7 +151,7 @@ public function testGetCollection()
147151 ->method ('where ' )
148152 ->withConsecutive (
149153 [$ this ->identicalTo ('main_table.is_active = 1 ' )],
150- [$ this ->identicalTo ('main_table.identifier NOT IN (?) ' ), $ this ->identicalTo ($ pageIdentifiers )],
154+ [$ this ->identicalTo ('main_table.identifier NOT IN (?) ' ), $ this ->identicalTo (array_values ( $ pageIdentifiers) )],
151155 [$ this ->identicalTo ('store_table.store_id IN(?) ' ), $ this ->identicalTo ([0 , $ storeId ])]
152156 )->willReturnSelf ();
153157
@@ -176,7 +180,7 @@ public function testGetCollection()
176180
177181 $ this ->getUtilityPageIdentifiers ->expects ($ this ->once ())
178182 ->method ('execute ' )
179- ->willReturn ($ pageIdentifiers );
183+ ->willReturn (array_keys ( $ pageIdentifiers) );
180184
181185 $ this ->resource ->expects ($ this ->exactly (2 ))
182186 ->method ('getTableName ' )
0 commit comments