ccConfigMock = $this->createMock(\Magento\Payment\Model\CcConfig::class); $this->paymentHelperMock = $this->createMock(\Magento\Payment\Helper\Data::class); $this->model = new CcGenericConfigProvider( $this->ccConfigMock, $this->paymentHelperMock ); } public function testGetConfig() { $this->assertEquals([], $this->model->getConfig()); } }