Skip to content

Commit e8fd092

Browse files
committed
MAGETWO-32720: [GITHUB] Add integration test for View\Page\Config\Reader\Html #902
- added copyright to new files
1 parent e42d22d commit e8fd092

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

dev/tests/integration/testsuite/Magento/Framework/View/Page/Config/Reader/HtmlTest.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<?php
2-
2+
/**
3+
* Copyright © 2015 Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
36
namespace Magento\Framework\View\Page\Config\Reader;
47

5-
68
class HtmlTest extends \PHPUnit_Framework_TestCase
79
{
810
public function testInterpret()
@@ -18,8 +20,8 @@ public function testInterpret()
1820
foreach ($pageXml->xpath('html') as $htmlElement) {
1921
$html->interpret($readerContext, $htmlElement, $parentElement);
2022
}
21-
23+
2224
$structure = $readerContext->getPageConfigStructure();
2325
$this->assertEquals(['html' => ['test-name' => 'test-value']], $structure->getElementAttributes());
2426
}
25-
}
27+
}

dev/tests/integration/testsuite/Magento/Framework/View/Page/Config/Reader/_files/_layout_update.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright © 2015 Magento. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
28
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd">
39
<html>
410
<attribute name="test-name" value="test-value"/>

0 commit comments

Comments
 (0)