public function testGetShort() { $value = 'some_title'; $this->title->set($value); $this->title->prepend($value); $this->title->append($value); $this->assertEquals($value, $this->title->getShort()); }
/** * @return void */ public function testGetShortWithSuffixAndPrefix() { $value = 'some_title'; $prefix = 'prefix'; $suffix = 'suffix'; $expected = $prefix . ' ' . $value . ' ' . $suffix; $this->title->set($value); $this->scopeConfigMock->expects($this->any())->method('getValue')->willReturnMap([['design/head/title_prefix', ScopeInterface::SCOPE_STORE, null, $prefix], ['design/head/title_suffix', ScopeInterface::SCOPE_STORE, null, $suffix]]); $this->assertEquals($expected, $this->title->getShort()); }