/** * @expectedException \Oro\Component\Layout\Exception\LogicException * @expectedExceptionMessage Cannot add "test" alias for "root" item. Reason: The "root" item does not exist. */ public function testAddAliasForUnknownItem() { $this->rawLayoutBuilder->addAlias('test', 'root'); }