Skip to content

Commit

Permalink
MAGETWO-32720: [GITHUB] Add integration test for View\Page\Config\Rea…
Browse files Browse the repository at this point in the history
…der\Html #902

- added copyright to new files
  • Loading branch information
vpelipenko committed Jan 16, 2015
1 parent e42d22d commit e8fd092
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?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()
Expand All @@ -18,8 +20,8 @@ public function testInterpret()
foreach ($pageXml->xpath('html') as $htmlElement) {
$html->interpret($readerContext, $htmlElement, $parentElement);
}

$structure = $readerContext->getPageConfigStructure();
$this->assertEquals(['html' => ['test-name' => 'test-value']], $structure->getElementAttributes());
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
<?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"/>
Expand Down

0 comments on commit e8fd092

Please sign in to comment.