Skip to content

Commit 0ffb532

Browse files
committed
Fixed failing test due to mismatch between fixture layout and template layout
1 parent 12c8310 commit 0ffb532

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

dev/tests/integration/testsuite/Magento/Framework/View/Layout/MergeTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class MergeTest extends \PHPUnit_Framework_TestCase
1717
* Fixture XML instruction(s) to be used in tests
1818
*/
1919
// @codingStandardsIgnoreStart
20-
const FIXTURE_LAYOUT_XML = '<block class="Magento\Framework\View\Element\Template" template="fixture_template_one.phtml"/>';
20+
const FIXTURE_LAYOUT_XML = '<block class="Magento\Framework\View\Element\Template" template="Magento_Framework::fixture_template_one.phtml"/>';
2121
// @codingStandardsIgnoreEnd
2222

2323
/**
@@ -230,10 +230,10 @@ public function testLoadFileSystem()
230230
$expectedResult = '
231231
<root>
232232
<body>
233-
<block class="Magento\Framework\View\Element\Template" template="fixture_template_one.phtml"/>
233+
<block class="Magento\Framework\View\Element\Template" template="Magento_Framework::fixture_template_one.phtml"/>
234234
</body>
235235
<body>
236-
<block class="Magento\Framework\View\Element\Template" template="fixture_template_two.phtml"/>
236+
<block class="Magento\Framework\View\Element\Template" template="Magento_Framework::fixture_template_two.phtml"/>
237237
</body>
238238
</root>
239239
';
@@ -249,7 +249,7 @@ public function testLoadFileSystemWithPageLayout()
249249
<root>
250250
<body>
251251
<referenceContainer name="main.container">
252-
<block class="Magento\Framework\View\Element\Template" template="fixture_template_one.phtml"/>
252+
<block class="Magento\Framework\View\Element\Template" template="Magento_Framework::fixture_template_one.phtml"/>
253253
</referenceContainer>
254254
</body>
255255
</root>

dev/tests/integration/testsuite/Magento/Framework/View/Model/Layout/MergeTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class MergeTest extends \PHPUnit_Framework_TestCase
1010
/**
1111
* Fixture XML instruction(s) to be used in tests
1212
*/
13-
const FIXTURE_LAYOUT_XML = '<block class="Magento\Framework\View\Element\Template" template="fixture.phtml"/>';
13+
const FIXTURE_LAYOUT_XML = '<block class="Magento\Framework\View\Element\Template" template="Magento_Framework::fixture.phtml"/>';
1414

1515
/**
1616
* @var \Magento\Framework\View\Model\Layout\Merge
@@ -32,7 +32,7 @@ protected function setUp()
3232
$layoutUpdate1->setHandle('fixture_handle_one');
3333
$layoutUpdate1->setXml(
3434
'<body>
35-
<block class="Magento\Framework\View\Element\Template" template="fixture_template_one.phtml"/>
35+
<block class="Magento\Framework\View\Element\Template" template="Magento_Framework::fixture_template_one.phtml"/>
3636
</body>'
3737
);
3838
$layoutUpdate1->setHasDataChanges(true);
@@ -49,7 +49,7 @@ protected function setUp()
4949
$layoutUpdate2->setHandle('fixture_handle_two');
5050
$layoutUpdate2->setXml(
5151
'<body>
52-
<block class="Magento\Framework\View\Element\Template" template="fixture_template_two.phtml"/>
52+
<block class="Magento\Framework\View\Element\Template" template="Magento_Framework::fixture_template_two.phtml"/>
5353
</body>'
5454
);
5555
$layoutUpdate2->setHasDataChanges(true);
@@ -74,10 +74,10 @@ public function testLoadDbApp()
7474
$expectedResult = '
7575
<root>
7676
<body>
77-
<block class="Magento\Framework\View\Element\Template" template="fixture_template_one.phtml"/>
77+
<block class="Magento\Framework\View\Element\Template" template="Magento_Framework::fixture_template_one.phtml"/>
7878
</body>
7979
<body>
80-
<block class="Magento\Framework\View\Element\Template" template="fixture_template_two.phtml"/>
80+
<block class="Magento\Framework\View\Element\Template" template="Magento_Framework::fixture_template_two.phtml"/>
8181
</body>
8282
</root>
8383
';

0 commit comments

Comments
 (0)