20 private $selectFactoryMock;
30 private $objectManagerMock;
35 private $mysqlFactory;
40 $this->objectManagerMock = $this->createMock(ObjectManagerInterface::class);
44 'objectManager' => $this->objectManagerMock
57 array $objectManagerArguments,
62 $this->objectManagerMock->expects($this->once())
66 $objectManagerArguments
68 $this->mysqlFactory->create(
81 $this->loggerMock = $this->getMockForAbstractClass(LoggerInterface::class);
82 $this->selectFactoryMock = $this->createMock(SelectFactory::class);
86 'config' => [
'foo' =>
'bar'],
87 'logger' => $this->loggerMock,
88 'selectFactory' => $this->selectFactoryMock
92 $this->selectFactoryMock
96 'config' => [
'foo' =>
'bar'],
97 'logger' => $this->loggerMock
105 'config' => [
'foo' =>
'bar'],
106 'selectFactory' => $this->selectFactoryMock
110 $this->selectFactoryMock
121 $this->mysqlFactory->create(
testCreate(array $objectManagerArguments, array $config, LoggerInterface $logger=null, SelectFactory $selectFactory=null)