11 class PageTest extends \PHPUnit\Framework\TestCase
25 $objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
28 $reflection = new \ReflectionClass($this->page);
29 $reflectionProperty = $reflection->getProperty(
'_idFieldName');
30 $reflectionProperty->setAccessible(
true);
31 $reflectionProperty->setValue($this->page,
'page_id');
32 $this->page->setId(1);
43 $this->block->setPage($this->page);
45 [\
Magento\Cms\Model\Page::CACHE_TAG .
'_' .
$id],
46 $this->block->getIdentities()