/** * @expectedException \Oro\Component\Layout\Exception\LogicException * @expectedExceptionMessage Cannot get block type for "unknown" item. Reason: The "unknown" item does not exist. */ public function testGetTypeWithException() { $this->rawLayoutBuilder->getType('unknown'); }