public function testGetActionsWithNoBlock() { $this->layout->expects($this->once())->method('getChildName')->with($this->_renderer->getNameInLayout(), 'actions')->willReturn(false); /** * @var Item|\PHPUnit_Framework_MockObject_MockObject $itemMock */ $itemMock = $this->getMockBuilder('Magento\\Quote\\Model\\Quote\\Item')->disableOriginalConstructor()->getMock(); $this->assertEquals('', $this->_renderer->getActions($itemMock)); }