/** * creates Resource Factory * * @return Resource */ private function getResource() { $deploymentConfig = $this->serviceLocator->get('Magento\Framework\App\DeploymentConfig'); return $this->resourceFactory->create($deploymentConfig); }
public function testCreate() { $resource = $this->resourceFactory->create($this->getMock('Magento\\Framework\\App\\DeploymentConfig', [], [], '', false)); $this->assertInstanceOf('Magento\\Framework\\App\\ResourceConnection', $resource); }
private function getResource() { $deploymentConfig = new \Magento\Framework\App\DeploymentConfig($this->serviceLocator->get('Magento\\Framework\\App\\DeploymentConfig\\Reader'), []); return $this->resourceFactory->create($deploymentConfig); }