public function testSuccess()
 {
     /** @var PurchaseResponse $response */
     $response = $this->request->send();
     $stub = $this->stub;
     $this->assertFalse($response->isSuccessful());
     $this->assertTrue($response->isRedirect());
     $this->assertNull($response->getCode());
     $this->assertNull($response->getMessage());
     $this->assertSame($stub->sci, $response->getRedirectUrl());
     $this->assertSame('POST', $response->getRedirectMethod());
     $this->assertSame(['ik_co_id' => $stub->purse, 'ik_am' => $stub->amount, 'ik_pm_no' => $stub->transactionId, 'ik_desc' => $stub->description, 'ik_cur' => $stub->currency, 'ik_pnd_u' => $stub->returnUrl, 'ik_pnd_m' => $stub->returnMethod, 'ik_suc_u' => $stub->returnUrl, 'ik_suc_m' => $stub->successMethod, 'ik_fal_u' => $stub->cancelUrl, 'ik_fal_m' => $stub->cancelMethod, 'ik_ia_u' => $stub->notifyUrl, 'ik_ia_m' => $stub->notifyMethod, 'ik_sign' => $stub->sign], $response->getRedirectData());
 }
 public function testSendData()
 {
     $data = $this->request->getData();
     $response = $this->request->sendData($data);
     $this->assertSame('Omnipay\\InterKassa\\Message\\PurchaseResponse', get_class($response));
 }