function setUp()
 {
     $this->credentials();
     Config::setIdSeparator('---');
     $this->expected_payment_methods = array("barzahlen", "credit_card", "direct_debit", "direct_pay24_sale", "giro_pay_sale", "ideal_sale", "pay_in_advance", "pay_pal", "pay_safe_card_sale", "payment_on_delivery", "purchase_on_account", "sepa_direct_debit");
     sort($this->expected_payment_methods);
 }
Пример #2
0
 function setUp()
 {
     Config::setIdSeparator(false);
     XmlSerializer::$sort = false;
     $this->curl = $curl = m::mock('Curl');
     $factory = m::mock(new Factory());
     $factory->shouldReceive('createHttpsClient')->with('the user', 'the passw')->andReturn($curl);
     Config::setFactory($factory);
     Config::set('the user', 'the passw', Config::ENV_SANDBOX);
 }
Пример #3
0
 /**
  * mocks the network layer
  * @param int $times how often XmlWebservice::call is expected to be called
  * @return Mockery of Hypercharge\Curl
  */
 function curlMock($times = 1)
 {
     $curl = m::mock('curl');
     $factory = m::mock('Hypercharge\\Factory[createHttpsClient]');
     $factory->shouldReceive('createHttpsClient')->times($times)->with('the user', 'the passw')->andReturn($curl);
     Config::setFactory($factory);
     Config::set('the user', 'the passw', Config::ENV_SANDBOX);
     Config::setIdSeparator(false);
     return $curl;
 }
 function setUp()
 {
     $this->credentials();
     Config::setIdSeparator('---');
     $this->channel_token = $this->credentials->channelTokens->EUR;
 }