File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
dev/tests/integration/testsuite/Magento/MediaContent/Model Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ public function execute(array $assetIds): array
7070 ->where (self ::ASSET_ID . ' IN (?) ' , $ assetIds );
7171
7272 $ contentIdentities = [];
73- foreach ($ connection ->fetchAssoc ($ select ) as $ contentIdentityData ) {
73+ foreach ($ connection ->fetchAll ($ select ) as $ contentIdentityData ) {
7474 $ contentIdentities [] = $ this ->factory ->create ($ contentIdentityData );
7575 }
7676 return $ contentIdentities ;
Original file line number Diff line number Diff line change 99 <search >
1010 <patterns >
1111 <pattern name =" catalog_image" >/^\/?media\/(.*)/</pattern >
12+ <pattern name =" catalog_image_with_pub" >/^\/pub\/?media\/(.*)/</pattern >
1213 </patterns >
1314 </search >
14- </config >
15+ </config >
Original file line number Diff line number Diff line change @@ -83,6 +83,12 @@ public function contentProvider()
8383 2020
8484 ]
8585 ],
86+ 'Relevant path content with pub ' => [
87+ '/pub/media/testDirectory/path.jpg ' ,
88+ [
89+ 2020
90+ ]
91+ ],
8692 'Relevant path content ' => [
8793 '/media/testDirectory/path.jpg ' ,
8894 [
You can’t perform that action at this time.
0 commit comments