From a9254a7a56323b7dc3544ba509a7cb9defc2db4e Mon Sep 17 00:00:00 2001 From: Cari Spruiell Date: Fri, 27 May 2016 10:33:15 -0500 Subject: [PATCH 1/7] MAGETWO-53545: Incorrect WSDL List #4537 - fix how returned service names are processed --- app/code/Magento/Webapi/Controller/Soap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Webapi/Controller/Soap.php b/app/code/Magento/Webapi/Controller/Soap.php index 0fde56dd6b73b..a449504ee1083 100644 --- a/app/code/Magento/Webapi/Controller/Soap.php +++ b/app/code/Magento/Webapi/Controller/Soap.php @@ -134,7 +134,7 @@ public function dispatch(\Magento\Framework\App\RequestInterface $request) $this->_setResponseBody($responseBody); } else if ($this->_isWsdlListRequest()) { $servicesList = []; - foreach (array_keys($this->_wsdlGenerator->getListOfServices()) as $serviceName) { + foreach ($this->_wsdlGenerator->getListOfServices() as $serviceName) { $servicesList[$serviceName]['wsdl_endpoint'] = $this->_soapServer->getEndpointUri() . '?' . \Magento\Webapi\Model\Soap\Server::REQUEST_PARAM_WSDL . '&services=' . $serviceName; } From 3ee38508bac7ff180b2e573b1aea5b7e53c25e68 Mon Sep 17 00:00:00 2001 From: Cari Spruiell Date: Fri, 27 May 2016 16:51:50 -0500 Subject: [PATCH 2/7] MAGETWO-52766: [Github] Template Minification is broken on the front-end #4365 - correct regex to allow for "// and '// patterns --- .../Magento/Framework/View/Template/Html/Minifier.php | 2 +- .../Framework/View/Test/Unit/Template/Html/MinifierTest.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/internal/Magento/Framework/View/Template/Html/Minifier.php b/lib/internal/Magento/Framework/View/Template/Html/Minifier.php index 69bd404606d0a..797fcae985555 100644 --- a/lib/internal/Magento/Framework/View/Template/Html/Minifier.php +++ b/lib/internal/Magento/Framework/View/Template/Html/Minifier.php @@ -131,7 +131,7 @@ public function minify($file) '#(?)[^\n\r]*#', '', preg_replace( - '#(?)#', + '#(?)#', '$1', preg_replace( '#(?)[^\n\r]*#', diff --git a/lib/internal/Magento/Framework/View/Test/Unit/Template/Html/MinifierTest.php b/lib/internal/Magento/Framework/View/Test/Unit/Template/Html/MinifierTest.php index 94fa61e04cbe5..b51c5570057cf 100644 --- a/lib/internal/Magento/Framework/View/Test/Unit/Template/Html/MinifierTest.php +++ b/lib/internal/Magento/Framework/View/Test/Unit/Template/Html/MinifierTest.php @@ -149,6 +149,8 @@ public function testMinify() //]]> + + inline text @@ -174,7 +176,7 @@ public function testMinify() } }); //]]> - inline text + inline text TEXT; $this->appDirectoryMock->expects($this->once()) From 57aec98436f096e1e8baa4d3b3d64cefec4034c0 Mon Sep 17 00:00:00 2001 From: Cari Spruiell Date: Tue, 31 May 2016 14:37:29 -0500 Subject: [PATCH 3/7] MAGETWO-52766: [Github] Template Minification is broken on the front-end #4365 - add to test --- .../Framework/View/Test/Unit/Template/Html/MinifierTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/internal/Magento/Framework/View/Test/Unit/Template/Html/MinifierTest.php b/lib/internal/Magento/Framework/View/Test/Unit/Template/Html/MinifierTest.php index b51c5570057cf..d9f0353451db8 100644 --- a/lib/internal/Magento/Framework/View/Test/Unit/Template/Html/MinifierTest.php +++ b/lib/internal/Magento/Framework/View/Test/Unit/Template/Html/MinifierTest.php @@ -124,6 +124,8 @@ public function testMinify() Test title + + Text Link some text @@ -158,7 +160,7 @@ public function testMinify() TEXT; $expectedContent = << Test titleText Link some textsomeMethod(); ?>