Skip to content

Commit

Permalink
Fixed failing test due to mismatch between fixture layout and templat…
Browse files Browse the repository at this point in the history
…e layout
  • Loading branch information
davidalger committed Mar 23, 2017
1 parent 12c8310 commit 0ffb532
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class MergeTest extends \PHPUnit_Framework_TestCase
* Fixture XML instruction(s) to be used in tests
*/
// @codingStandardsIgnoreStart
const FIXTURE_LAYOUT_XML = '<block class="Magento\Framework\View\Element\Template" template="fixture_template_one.phtml"/>';
const FIXTURE_LAYOUT_XML = '<block class="Magento\Framework\View\Element\Template" template="Magento_Framework::fixture_template_one.phtml"/>';
// @codingStandardsIgnoreEnd

/**
Expand Down Expand Up @@ -230,10 +230,10 @@ public function testLoadFileSystem()
$expectedResult = '
<root>
<body>
<block class="Magento\Framework\View\Element\Template" template="fixture_template_one.phtml"/>
<block class="Magento\Framework\View\Element\Template" template="Magento_Framework::fixture_template_one.phtml"/>
</body>
<body>
<block class="Magento\Framework\View\Element\Template" template="fixture_template_two.phtml"/>
<block class="Magento\Framework\View\Element\Template" template="Magento_Framework::fixture_template_two.phtml"/>
</body>
</root>
';
Expand All @@ -249,7 +249,7 @@ public function testLoadFileSystemWithPageLayout()
<root>
<body>
<referenceContainer name="main.container">
<block class="Magento\Framework\View\Element\Template" template="fixture_template_one.phtml"/>
<block class="Magento\Framework\View\Element\Template" template="Magento_Framework::fixture_template_one.phtml"/>
</referenceContainer>
</body>
</root>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class MergeTest extends \PHPUnit_Framework_TestCase
/**
* Fixture XML instruction(s) to be used in tests
*/
const FIXTURE_LAYOUT_XML = '<block class="Magento\Framework\View\Element\Template" template="fixture.phtml"/>';
const FIXTURE_LAYOUT_XML = '<block class="Magento\Framework\View\Element\Template" template="Magento_Framework::fixture.phtml"/>';

/**
* @var \Magento\Framework\View\Model\Layout\Merge
Expand All @@ -32,7 +32,7 @@ protected function setUp()
$layoutUpdate1->setHandle('fixture_handle_one');
$layoutUpdate1->setXml(
'<body>
<block class="Magento\Framework\View\Element\Template" template="fixture_template_one.phtml"/>
<block class="Magento\Framework\View\Element\Template" template="Magento_Framework::fixture_template_one.phtml"/>
</body>'
);
$layoutUpdate1->setHasDataChanges(true);
Expand All @@ -49,7 +49,7 @@ protected function setUp()
$layoutUpdate2->setHandle('fixture_handle_two');
$layoutUpdate2->setXml(
'<body>
<block class="Magento\Framework\View\Element\Template" template="fixture_template_two.phtml"/>
<block class="Magento\Framework\View\Element\Template" template="Magento_Framework::fixture_template_two.phtml"/>
</body>'
);
$layoutUpdate2->setHasDataChanges(true);
Expand All @@ -74,10 +74,10 @@ public function testLoadDbApp()
$expectedResult = '
<root>
<body>
<block class="Magento\Framework\View\Element\Template" template="fixture_template_one.phtml"/>
<block class="Magento\Framework\View\Element\Template" template="Magento_Framework::fixture_template_one.phtml"/>
</body>
<body>
<block class="Magento\Framework\View\Element\Template" template="fixture_template_two.phtml"/>
<block class="Magento\Framework\View\Element\Template" template="Magento_Framework::fixture_template_two.phtml"/>
</body>
</root>
';
Expand Down

0 comments on commit 0ffb532

Please sign in to comment.