Skip to content

Commit 5a0795f

Browse files
committed
Add 'metatitle' to metadata test
1 parent 1795f67 commit 5a0795f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lib/internal/Magento/Framework/View/Page/Config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ class Config
127127
'description' => null,
128128
'keywords' => null,
129129
'robots' => null,
130+
'title' => null,
130131
];
131132

132133
/**

lib/internal/Magento/Framework/View/Test/Unit/Page/ConfigTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,10 @@ public function testMetadata()
141141
'robots' => null,
142142
'name' => 'test_value',
143143
'html_encoded' => '<title><span class="test">Test</span></title>',
144+
'title' => 'metatitle'
144145
];
145146
$this->model->setMetadata('name', 'test_value');
147+
$this->model->setMetadata('title', 'metatitle');
146148
$this->model->setMetadata('html_encoded', '<title><span class="test">Test</span></title>');
147149
$this->assertEquals($expectedMetadata, $this->model->getMetadata());
148150
}

0 commit comments

Comments
 (0)