From 5a0795f8799173bdbf8bc99bf1cc846ff98ec3b7 Mon Sep 17 00:00:00 2001 From: Lorenzo Stramaccia Date: Fri, 22 Jun 2018 15:27:10 +0200 Subject: [PATCH] Add 'metatitle' to metadata test --- lib/internal/Magento/Framework/View/Page/Config.php | 1 + .../Magento/Framework/View/Test/Unit/Page/ConfigTest.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/internal/Magento/Framework/View/Page/Config.php b/lib/internal/Magento/Framework/View/Page/Config.php index 6f7a1c1c5fbb2..058cad00320cd 100644 --- a/lib/internal/Magento/Framework/View/Page/Config.php +++ b/lib/internal/Magento/Framework/View/Page/Config.php @@ -127,6 +127,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 935154a75026e..5bada08bbd00f 100644 --- a/lib/internal/Magento/Framework/View/Test/Unit/Page/ConfigTest.php +++ b/lib/internal/Magento/Framework/View/Test/Unit/Page/ConfigTest.php @@ -141,8 +141,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()); }