public function testChangeBlockTypeForAlreadyResolvedItem()
 {
     $this->rawLayoutBuilder->add('root', null, 'root');
     $this->rawLayoutBuilder->getRawLayout()->setProperty('root', RawLayout::RESOLVED_OPTIONS, []);
     $this->rawLayoutBuilder->changeBlockType('root', 'my_root');
 }
 /**
  * @param string|null $rootId
  *
  * @return BlockView
  */
 protected function getLayoutView($rootId = null)
 {
     $this->layoutManipulator->applyChanges($this->context, true);
     $rawLayout = $this->rawLayoutBuilder->getRawLayout();
     return $this->blockFactory->createBlockView($rawLayout, $this->context, $rootId);
 }