public function testCreate() { $actionInterfaceMock = $this->getMockForAbstractClass('Magento\\Framework\\Indexer\\ActionInterface', [], '', false); $this->objectManagerMock->expects($this->once())->method('create')->with('Magento\\Framework\\Indexer\\ActionInterface', [])->willReturn($actionInterfaceMock); $this->model->create('Magento\\Framework\\Indexer\\ActionInterface'); $this->assertInstanceOf('Magento\\Framework\\Indexer\\ActionInterface', $actionInterfaceMock); }
/** * Return indexer action instance * * @return ActionInterface */ protected function getActionInstance() { return $this->actionFactory->create($this->getActionClass(), ['indexStructure' => $this->getStructureInstance(), 'data' => $this->getData()]); }