/** * @param array $returnMap * @param bool $expectedValue * * @dataProvider isWppApiAvailabeDataProvider */ public function testIsWppApiAvailabe($returnMap, $expectedValue) { $this->config->setMethod('paypal_express'); $this->scopeConfigMock->expects($this->any())->method('getValue')->willReturnMap($returnMap); $this->assertEquals($expectedValue, $this->config->isWppApiAvailabe()); }