public function setUp()
 {
     parent::setUp();
     $this->config = AdyenTestConfiguration::createWithSuccessfulApi();
     Context::initWithLogger($this->config);
     $this->jobQueue = $this->config->object('data-store/jobs-adyen');
     $this->jobQueue->createTable('jobs-adyen');
 }
 public function setUp()
 {
     parent::setUp();
     $this->config = AdyenTestConfiguration::createWithSuccessfulApi();
     Context::initWithLogger($this->config);
     $this->jobQueue = BaseQueueConsumer::getQueue('jobs-adyen');
     $this->jobQueue->createTable('jobs-adyen');
 }
 function setUp()
 {
     parent::setUp();
     $this->captureCompleted = $this->loadJson(__DIR__ . "/../Data/IPN/CaptureCompleted.json");
     $this->captureDeclined = $this->loadJson(__DIR__ . "/../Data/IPN/CaptureDeclined.json");
     $this->refundCompleted = $this->loadJson(__DIR__ . "/../Data/IPN/RefundCompleted.json");
     $this->refundDeclined = $this->loadJson(__DIR__ . "/../Data/IPN/RefundDeclined.json");
 }
 public function tearDown()
 {
     // FIXME: huh.  I guess we should use class names to avoid possible
     // incomplete destruction in the case that paymentsInitialDb was never
     // initialized.
     TestingDatabase::clearStatics($this->paymentsInitialDb);
     TestingDatabase::clearStatics($this->pendingDb);
     parent::tearDown();
 }
 public function setUp()
 {
     parent::setUp();
     Context::initWithLogger(QueueTestConfiguration::instance());
     $this->queue = BaseQueueConsumer::getQueue('test');
     $this->queue->createTable('test');
     $damagedDb = DamagedDatabase::get();
     $damagedDb->createTable();
     $this->damaged = $damagedDb->getDatabase();
 }
 public function setUp()
 {
     parent::setUp();
     $this->config = PayPalTestConfiguration::get();
     // php-queue\PDO complains about pop() from non-existent table
     $this->config->object('data-store/jobs-paypal')->createTable('jobs-paypal');
     Context::initWithLogger($this->config);
     foreach (self::$message_data as $file => $type) {
         self::$messages[] = array('type' => $type, 'payload' => json_decode(file_get_contents(__DIR__ . '/../Data/' . $file), true));
     }
 }
 public function setUp()
 {
     parent::setUp();
     chdir(__DIR__ . '/..');
     // So the mock client can find its response files
     $config = AmazonTestConfiguration::instance();
     Context::initWithLogger($config);
     $this->mockClient = $config->object('payments-client', true);
     $this->mockClient->calls = array();
     $this->mockClient->returns = array();
     $this->mockClient->exceptions = array();
 }
 public function tearDown()
 {
     TestingDatabase::clearStatics($this->db);
     parent::tearDown();
 }
 public function tearDown()
 {
     TestingDatabase::clearStatics($this->paymentsInitialDb);
     TestingDatabase::clearStatics($this->pendingDb);
     parent::tearDown();
 }
 public function tearDown()
 {
     $this->pendingDatabase->deleteMessage($this->pendingMessage);
     parent::tearDown();
 }
 function setUp()
 {
     parent::setUp();
     $this->paymentSuccess = $this->loadJson(__DIR__ . "/../Data/paid.json");
 }
 public function setUp()
 {
     parent::setUp();
     Context::initWithLogger(AmazonTestConfiguration::instance());
 }