20 public function testAfterGetResult($isPub, $times)
22 $docRootLocator = $this->createMock(\
Magento\Framework\
App\DocRootLocator::class);
23 $docRootLocator->expects($this->once())->method(
'isPub')->willReturn($isPub);
26 $menu = $this->createMock(\
Magento\Backend\Model\Menu::class);
27 $menu->expects($this->exactly($times))->method(
'remove')->willReturn(
true);
30 $menuBuilder = $this->createMock(\
Magento\Backend\Model\Menu\Builder::class);
32 $this->assertInstanceOf(
33 \
Magento\Backend\Model\Menu::class,
34 $model->afterGetResult($menuBuilder, $menu)
43 return [[
true, 1], [
false, 0],];