Skip to content

Commit c4d2bb7

Browse files
committed
add address3 tests
1 parent 70a1b3a commit c4d2bb7

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tests/Common/CreditCardTest.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,13 @@ public function testBillingAddress2()
423423
$this->assertEquals('Suburb', $this->card->getAddress2());
424424
}
425425

426+
public function testBillingAddress3()
427+
{
428+
$this->card->setBillingAddress3('Building C, Room 308');
429+
$this->assertEquals('Building C, Room 308', $this->card->getBillingAddress3());
430+
$this->assertEquals('Building C, Room 308', $this->card->getAddress3());
431+
}
432+
426433
public function testBillingCity()
427434
{
428435
$this->card->setBillingCity('Quahog');
@@ -519,6 +526,12 @@ public function testShippingAddress2()
519526
$this->assertEquals('Suburb', $this->card->getShippingAddress2());
520527
}
521528

529+
public function testShippingAddress3()
530+
{
531+
$this->card->setShippingAddress3('Building C, Room 308');
532+
$this->assertEquals('Building C, Room 308', $this->card->getShippingAddress3());
533+
}
534+
522535
public function testShippingCity()
523536
{
524537
$this->card->setShippingCity('Quahog');
@@ -585,6 +598,14 @@ public function testAddress2()
585598
$this->assertEquals('Suburb', $this->card->getShippingAddress2());
586599
}
587600

601+
public function testAddress3()
602+
{
603+
$this->card->setAddress3('Building C, Room 308');
604+
$this->assertEquals('Building C, Room 308', $this->card->getAddress3());
605+
$this->assertEquals('Building C, Room 308', $this->card->getBillingAddress3());
606+
$this->assertEquals('Building C, Room 308', $this->card->getShippingAddress3());
607+
}
608+
588609
public function testCity()
589610
{
590611
$this->card->setCity('Quahog');

0 commit comments

Comments
 (0)