Ejemplo n.º 1
0
 public function testGetterSetter()
 {
     $this->assertEquals(AmountTest::$currency, $this->transaction->getAmount()->getCurrency());
     $this->assertEquals(self::$description, $this->transaction->getDescription());
     $this->assertEquals(self::$invoiceNumber, $this->transaction->getInvoiceNumber());
     $this->assertEquals(self::$custom, $this->transaction->getCustom());
     $this->assertEquals(self::$softDescriptor, $this->transaction->getSoftDescriptor());
     $items = $this->transaction->getItemList()->getItems();
     $this->assertEquals(ItemTest::$quantity, $items[0]->getQuantity());
     $this->assertEquals(PayeeTest::$email, $this->transaction->getPayee()->getEmail());
     $resources = $this->transaction->getRelatedResources();
     $this->assertEquals(AuthorizationTest::$create_time, $resources[0]->getAuthorization()->getCreateTime());
 }