-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from magento-mpi/public-pulls
[Github] Merge public Github commits
- Loading branch information
Showing
23 changed files
with
155 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,14 +5,14 @@ | |
*/ | ||
namespace Magento\Catalog\Model\Resource\Product\Attribute\Backend; | ||
|
||
use Magento\Catalog\Model\Resource\Product\Attribute\Backend\Groupprice\AbstractGroupprice; | ||
use Magento\Catalog\Model\Resource\Product\Attribute\Backend\GroupPrice\AbstractGroupPrice; | ||
|
||
/** | ||
* Catalog product group price backend attribute model | ||
* | ||
* @author Magento Core Team <[email protected]> | ||
*/ | ||
class Groupprice extends AbstractGroupprice | ||
class GroupPrice extends AbstractGroupPrice | ||
{ | ||
/** | ||
* Initialize connection and define main table | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,9 @@ | |
* | ||
* @author Magento Core Team <[email protected]> | ||
*/ | ||
namespace Magento\Catalog\Model\Resource\Product\Attribute\Backend\Groupprice; | ||
namespace Magento\Catalog\Model\Resource\Product\Attribute\Backend\GroupPrice; | ||
|
||
abstract class AbstractGroupprice extends \Magento\Framework\Model\Resource\Db\AbstractDb | ||
abstract class AbstractGroupPrice extends \Magento\Framework\Model\Resource\Db\AbstractDb | ||
{ | ||
/** | ||
* Load Tier Prices for product | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,14 +5,14 @@ | |
*/ | ||
namespace Magento\Catalog\Model\Resource\Product\Attribute\Backend; | ||
|
||
use Magento\Catalog\Model\Resource\Product\Attribute\Backend\Groupprice\AbstractGroupprice; | ||
use Magento\Catalog\Model\Resource\Product\Attribute\Backend\GroupPrice\AbstractGroupPrice; | ||
|
||
/** | ||
* Catalog product tier price backend attribute model | ||
* | ||
* @author Magento Core Team <[email protected]> | ||
*/ | ||
class Tierprice extends AbstractGroupprice | ||
class Tierprice extends AbstractGroupPrice | ||
{ | ||
/** | ||
* Initialize connection and define main table | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...ase/UpdateCustomerFrontendEntity/test.csv → ...UpdateCustomerFrontendEntityTest/test.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
"customer/data/firstname";"customer/data/lastname";"customer/data/email";"address/data/firstname";"address/data/lastname";"address/data/company";"address/data/street";"address/data/city";"address/data/country_id";"address/data/region_id";"address/data/region";"address/data/telephone";"address/data/fax";"address/data/postcode";"constraint" | ||
"Jany %isolation%";"Doe %isolation%";"janydoe%isolation%@example.com";"Jany %isolation%";"Doe %isolation%";"Company %isolation%";"Some street %isolation%";"City %isolation%";"United States";"Colorado";"-";"555-888-111-999";"161-999-8888";"12345";"assertCustomerAddressSuccessSaveMessage, assertCustomerDefaultAddresses" | ||
"Jonny %isolation%";"Doe %isolation%";"jonny%isolation%@example.com";"John %isolation%";"Doe %isolation%";"Company %isolation%";"Some street %isolation%";"City %isolation%";"United Kingdom";"-";"Region %isolation%";"0123456789-02134567";"5555-874-99634";"12345";"assertCustomerAddressSuccessSaveMessage, assertCustomerDefaultAddresses" | ||
"Jean %isolation%";"Reno %isolation%";"jean%isolation%@example.com";"Jean %isolation%";"Reno %isolation%";"Magento %isolation%";"18-20 Rue Maréchal Leclerc";"Quintin";"France";"Côtes-d'Armor";"-";"555-888-111-999";"161-999-8888";"12345";"assertCustomerAddressSuccessSaveMessage, assertCustomerDefaultAddresses" |
27 changes: 27 additions & 0 deletions
27
dev/tests/integration/testsuite/Magento/Framework/View/Page/Config/Reader/HtmlTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
/** | ||
* Copyright © 2015 Magento. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
namespace Magento\Framework\View\Page\Config\Reader; | ||
|
||
class HtmlTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
public function testInterpret() | ||
{ | ||
/** @var \Magento\Framework\View\Layout\Reader\Context $readerContext */ | ||
$readerContext = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create( | ||
'Magento\Framework\View\Layout\Reader\Context' | ||
); | ||
$pageXml = new \Magento\Framework\View\Layout\Element(__DIR__ . '/_files/_layout_update.xml', 0, true); | ||
$parentElement = new \Magento\Framework\View\Layout\Element('<page></page>'); | ||
|
||
$html = new Html(); | ||
foreach ($pageXml->xpath('html') as $htmlElement) { | ||
$html->interpret($readerContext, $htmlElement, $parentElement); | ||
} | ||
|
||
$structure = $readerContext->getPageConfigStructure(); | ||
$this->assertEquals(['html' => ['test-name' => 'test-value']], $structure->getElementAttributes()); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...integration/testsuite/Magento/Framework/View/Page/Config/Reader/_files/_layout_update.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
/** | ||
* Copyright © 2015 Magento. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd"> | ||
<html> | ||
<attribute name="test-name" value="test-value"/> | ||
</html> | ||
</page> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.