locator = $this->getMockForAbstractClass(\Zend\ServiceManager\ServiceLocatorInterface::class); $this->object = new ObjectManagerProvider($this->locator, new Bootstrap()); } public function testGet() { $this->locator->expects($this->once())->method('get')->with(InitParamListener::BOOTSTRAP_PARAM)->willReturn([]); $objectManager = $this->object->get(); $this->assertInstanceOf(\Magento\Framework\ObjectManagerInterface::class, $objectManager); $this->assertSame($objectManager, $this->object->get()); } }