markTestSkipped('authorize.net not configured'); } } public function testUnpackingVars() { $vars = json_decode(config('ninja.testvars.authorize')); $this->assertTrue(property_exists($vars, 'apiLoginId')); } public function testCreatePublicClientKey() { error_reporting (E_ALL & ~E_DEPRECATED); $vars = json_decode(config('ninja.testvars.authorize')); $merchantAuthentication = new AnetAPI\MerchantAuthenticationType(); $merchantAuthentication->setName($vars->apiLoginId); $merchantAuthentication->setTransactionKey($vars->transactionKey); $request = new AnetAPI\GetMerchantDetailsRequest(); $request->setMerchantAuthentication($merchantAuthentication); $controller = new GetMerchantDetailsController($request); $response = $controller->executeWithApiResponse( \net\authorize\api\constants\ANetEnvironment::SANDBOX); $this->assertNotNull($response->getPublicClientKey()); } }