Skip to content

Commit da37605

Browse files
committed
Fixing static and integration tests
1 parent 1d2dd67 commit da37605

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

dev/tests/integration/testsuite/Magento/Framework/View/LayoutTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public function testAddContainerInvalidHtmlTag()
274274
{
275275
$msg = 'Html tag "span" is forbidden for usage in containers. ' .
276276
'Consider to use one of the allowed: aside, dd, div, dl, fieldset, main, nav, ' .
277-
'header, footer, ol, p, section, table, tfoot, ul.';
277+
'header, footer, ol, p, section, table, tfoot, ul, article.';
278278
$this->expectException(\Magento\Framework\Exception\LocalizedException::class);
279279
$this->expectExceptionMessage($msg);
280280
$this->_layout->addContainer('container', 'Container', ['htmlTag' => 'span']);

lib/internal/Magento/Framework/View/Layout/Generator/Container.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
use Magento\Framework\View\Layout;
99

10+
/**
11+
* Layout Container Class
12+
*/
1013
class Container implements Layout\GeneratorInterface
1114
{
1215
/**#@+
@@ -43,7 +46,7 @@ class Container implements Layout\GeneratorInterface
4346
];
4447

4548
/**
46-
* {@inheritdoc}
49+
* @inheritdoc
4750
*
4851
* @return string
4952
*/
@@ -96,8 +99,12 @@ public function generateContainer(
9699
}
97100

98101
/**
102+
* Validate container options
103+
*
99104
* @param array $options
105+
*
100106
* @return void
107+
*
101108
* @throws \Magento\Framework\Exception\LocalizedException
102109
*/
103110
protected function validateOptions($options)

0 commit comments

Comments
 (0)