File tree Expand file tree Collapse file tree 6 files changed +30
-5
lines changed
Test/Unit/Controller/Index
Wishlist/view/frontend/layout
dev/tests/integration/testsuite/Magento/Framework/App/Language/_files/bar/en_gb
lib/internal/Magento/Framework/App/Language Expand file tree Collapse file tree 6 files changed +30
-5
lines changed Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" ?>
2+ <!--
3+ /**
4+ * Copyright © Magento, Inc. All rights reserved.
5+ * See COPYING.txt for license details.
6+ */
7+ -->
8+ <config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:framework:Acl/etc/acl.xsd" >
9+ <acl >
10+ <resources >
11+ <resource id =" Magento_Backend::admin" >
12+ <resource id =" Magento_Backend::system" >
13+ <resource id =" Magento_Integration::extensions" title =" System Extensions" translate =" title" sortOrder =" 30" >
14+ <resource id =" Magento_Integration::integrations" title =" System Integrations" translate =" title" sortOrder =" 40" />
15+ </resource >
16+ </resource >
17+ </resource >
18+ </resources >
19+ </acl >
20+ </config >
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ public function execute()
4343 /** @var Page $resultPage */
4444 $ resultPage = $ this ->resultPageFactory ->create (true );
4545 $ resultPage ->addHandle ('robots_index_index ' );
46+ $ resultPage ->setHeader ('Content-Type ' , 'text/plain ' );
4647 return $ resultPage ;
4748 }
4849}
Original file line number Diff line number Diff line change @@ -51,6 +51,9 @@ public function testExecute()
5151 $ resultPageMock ->expects ($ this ->once ())
5252 ->method ('addHandle ' )
5353 ->with ('robots_index_index ' );
54+ $ resultPageMock ->expects ($ this ->once ())
55+ ->method ('setHeader ' )
56+ ->with ('Content-Type ' , 'text/plain ' );
5457
5558 $ this ->resultPageFactory ->expects ($ this ->any ())
5659 ->method ('create ' )
Original file line number Diff line number Diff line change 77-->
88<page xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:framework:View/Layout/etc/page_configuration.xsd" >
99 <body >
10- <referenceContainer name =" root" >
11- <block class =" Magento\Wishlist\Block\Rss\EmailLink" name =" wishlist.email.rss" cacheable =" false" />
12- </referenceContainer >
10+ <block class =" Magento\Wishlist\Block\Rss\EmailLink" name =" wishlist.email.rss" cacheable =" false" />
1311 </body >
1412</page >
Original file line number Diff line number Diff line change 11four and 75/100,4.75
2- four and 5/10,4.50
2+ four and 5/10,4.50
3+
Original file line number Diff line number Diff line change @@ -193,7 +193,9 @@ private function readPackCsv($vendor, $package)
193193 foreach ($ foundCsvFiles as $ foundCsvFile ) {
194194 $ file = $ directoryRead ->openFile ($ foundCsvFile );
195195 while (($ row = $ file ->readCsv ()) !== false ) {
196- $ result [$ row [0 ]] = $ row [1 ];
196+ if (is_array ($ row ) && count ($ row ) > 1 ) {
197+ $ result [$ row [0 ]] = $ row [1 ];
198+ }
197199 }
198200 }
199201 }
You can’t perform that action at this time.
0 commit comments