public function testGetUnsettledTransactionList()
 {
     $sale = new AuthorizeNetAIM();
     $amount = rand(1, 100);
     $response = $sale->authorizeAndCapture($amount, '4012888818888', '04/17');
     $this->assertTrue($response->approved);
     $request = new AuthorizeNetTD();
     $response = $request->getUnsettledTransactionList();
     $this->assertTrue($response->isOk());
     $this->assertTrue($response->xml->transactions->count() >= 1);
 }
 public function testGetUnsettledTransactionListHasNoReturnedItems()
 {
     $request = new AuthorizeNetTD();
     $response = $request->getUnsettledTransactionList();
     $this->assertTrue($response->isOk());
     $this->assertTrue($response->xml->transactions->count() >= 1);
     foreach ($response->xml->transactions->transaction as $transaction) {
         if ($transaction->hasReturnedItems) {
             $this->assertEquals("false", $transaction->hasReturnedItems);
         }
     }
 }
 public function testGetUnsettledTransactionListHasNoReturnedItems()
 {
     $this->markTestSkipped('Ignoring for Travis. Will fix after release.');
     //TODO
     $request = new AuthorizeNetTD();
     $response = $request->getUnsettledTransactionList();
     $this->assertTrue($response->isOk());
     $this->assertTrue($response->xml->transactions->count() >= 1);
     foreach ($response->xml->transactions->transaction as $transaction) {
         if ($transaction->hasReturnedItems) {
             $this->assertEquals("false", $transaction->hasReturnedItems);
         }
     }
 }