Skip to content

Commit ace056a

Browse files
committed
Automated test coverage added for meta title suffix and prefix
1 parent bd90ae2 commit ace056a

File tree

1 file changed

+3
-0
lines changed
  • dev/tests/integration/testsuite/Magento/Catalog/Helper/Product

1 file changed

+3
-0
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Helper/Product/ViewTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ public function testInitProductLayout()
101101
/**
102102
* @magentoDataFixture Magento/Catalog/_files/multiple_products.php
103103
* @magentoAppIsolation enabled
104+
* @magentoConfigFixture default_store design/head/title_prefix prefix
105+
* @magentoConfigFixture default_store design/head/title_suffix suffix
104106
* @magentoAppArea frontend
105107
*/
106108
public function testPrepareAndRender()
@@ -112,6 +114,7 @@ public function testPrepareAndRender()
112114
/** @var \Magento\TestFramework\Response $response */
113115
$response = $this->objectManager->get(\Magento\TestFramework\Response::class);
114116
$this->page->renderResult($response);
117+
$this->assertStringContainsString('prefix meta title suffix', $response->getBody());
115118
$this->assertNotEmpty($response->getBody());
116119
$this->assertEquals(
117120
10,

0 commit comments

Comments
 (0)