Skip to content

Commit 8f2eb93

Browse files
committed
AC-9831: Block template render enhancement
* fixed unit and integration tests
1 parent 1e5e1d0 commit 8f2eb93

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dev/tests/integration/testsuite/Magento/Framework/View/Element/AbstractBlockTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ public function testGetCacheKey()
573573
$this->assertNotEquals($name, $key);
574574

575575
$block->setCacheKey('key');
576-
$this->assertEquals(AbstractBlock::CACHE_KEY_PREFIX . 'key', $block->getCacheKey());
576+
$this->assertEquals(AbstractBlock::CUSTOM_CACHE_KEY_PREFIX . 'key', $block->getCacheKey());
577577
}
578578

579579
/**

lib/internal/Magento/Framework/View/Test/Unit/Element/AbstractBlockTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public function testGetCacheKey()
239239
{
240240
$cacheKey = 'testKey';
241241
$this->block->setData('cache_key', $cacheKey);
242-
$this->assertEquals(AbstractBlock::CACHE_KEY_PREFIX . $cacheKey, $this->block->getCacheKey());
242+
$this->assertEquals(AbstractBlock::CUSTOM_CACHE_KEY_PREFIX . $cacheKey, $this->block->getCacheKey());
243243
}
244244

245245
/**

0 commit comments

Comments
 (0)