diff --git a/lib/internal/Magento/Framework/View/Page/Config.php b/lib/internal/Magento/Framework/View/Page/Config.php index 7dd942978ecb..66e2843ce97a 100644 --- a/lib/internal/Magento/Framework/View/Page/Config.php +++ b/lib/internal/Magento/Framework/View/Page/Config.php @@ -117,6 +117,7 @@ class Config 'description' => null, 'keywords' => null, 'robots' => null, + 'title' => null, ]; /** diff --git a/lib/internal/Magento/Framework/View/Test/Unit/Page/ConfigTest.php b/lib/internal/Magento/Framework/View/Test/Unit/Page/ConfigTest.php index 4862816a9efe..bfb8e485d24b 100644 --- a/lib/internal/Magento/Framework/View/Test/Unit/Page/ConfigTest.php +++ b/lib/internal/Magento/Framework/View/Test/Unit/Page/ConfigTest.php @@ -139,8 +139,10 @@ public function testMetadata() 'robots' => null, 'name' => 'test_value', 'html_encoded' => '<title><span class="test">Test</span></title>', + 'title' => 'metatitle' ]; $this->model->setMetadata('name', 'test_value'); + $this->model->setMetadata('title', 'metatitle'); $this->model->setMetadata('html_encoded', '<span class="test">Test</span>'); $this->assertEquals($expectedMetadata, $this->model->getMetadata()); }