Skip to content

Commit

Permalink
Merge pull request #150 from geekcom/5.x.x
Browse files Browse the repository at this point in the history
fix old tests, add new tests
  • Loading branch information
geekcom authored Oct 21, 2018
2 parents 4db3080 + 48ac96e commit fecba60
Show file tree
Hide file tree
Showing 14 changed files with 66 additions and 39 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### 5.0.0 (21/10/2018)

#### Implementações
* novos casos de testes foram implementados

### 4.2.1 (16/08/2018)

#### Correções
Expand Down
7 changes: 4 additions & 3 deletions tests/Domains/DirectPreApproval/AddressTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ protected function setUp()
$this->obj = new Address();
}

/**
* @todo implement assertInstanceOf
*/
public function testConstructor()
{
$this->assertInstanceOf(Address::class, $this->obj);
}

public function testRequiredParameters()
{
Expand Down
7 changes: 4 additions & 3 deletions tests/Domains/DirectPreApproval/BillingAddressTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ protected function setUp()
$this->obj = new BillingAddress();
}

/**
* @todo implement assertInstanceOf
*/
public function testConstructor()
{
$this->assertInstanceOf(BillingAddress::class, $this->obj);
}

public function testRequiredParameters()
{
Expand Down
8 changes: 5 additions & 3 deletions tests/Domains/DirectPreApproval/CreditCardTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ protected function setUp()
$this->obj = new CreditCard();
}

/**
* @todo implement tests
*/
public function testRequiredParameters()
{
$this->assertObjectHasAttribute('token', $this->obj);
$this->assertObjectHasAttribute('holder', $this->obj);
}

}
7 changes: 4 additions & 3 deletions tests/Domains/DirectPreApproval/DocumentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ protected function setUp()
$this->obj = new Document();
}

/**
* @todo implement assertInstanceOf
*/
public function testConstructor()
{
$this->assertInstanceOf(Document::class, $this->obj);
}

public function testRequiredParameters()
{
Expand Down
7 changes: 4 additions & 3 deletions tests/Domains/DirectPreApproval/ExpirationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ protected function setUp()
$this->obj = new Expiration();
}

/**
* @todo implement assertInstanceOf
*/
public function testConstructor()
{
$this->assertInstanceOf(Expiration::class, $this->obj);
}

public function testRequiredParameters()
{
Expand Down
15 changes: 12 additions & 3 deletions tests/Domains/DirectPreApproval/HolderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,16 @@ protected function setUp()
$this->obj = new Holder();
}

/**
* @todo implement tests
*/
public function testConstructor()
{
$this->assertInstanceOf(Holder::class, $this->obj);
}

public function testRequiredParameters()
{
$this->assertObjectHasAttribute('name', $this->obj);
$this->assertObjectHasAttribute('birthDate', $this->obj);
$this->assertObjectHasAttribute('documents', $this->obj);
$this->assertObjectHasAttribute('phone', $this->obj);
}
}
7 changes: 4 additions & 3 deletions tests/Domains/DirectPreApproval/ItemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ protected function setUp()
$this->obj = new Item();
}

/**
* @todo implement assertInstanceOf
*/
public function testConstructor()
{
$this->assertInstanceOf(Item::class, $this->obj);
}

public function testRequiredParameters()
{
Expand Down
7 changes: 4 additions & 3 deletions tests/Domains/DirectPreApproval/PaymentMethodTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ protected function setUp()
$this->obj = new PaymentMethod();
}

/**
* @todo implement assertInstanceOf
*/
public function testConstructor()
{
$this->assertInstanceOf(PaymentMethod::class, $this->obj);
}

public function testRequiredParameters()
{
Expand Down
7 changes: 4 additions & 3 deletions tests/Domains/DirectPreApproval/PhoneTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ protected function setUp()
$this->obj = new Phone();
}

/**
* @todo implement assertInstanceOf
*/
public function testConstructor()
{
$this->assertInstanceOf(Phone::class, $this->obj);
}

public function testParameters()
{
Expand Down
7 changes: 4 additions & 3 deletions tests/Domains/DirectPreApproval/PlanTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ protected function setUp()
$this->obj = new Plan();
}

/**
* @todo implement assertInstanceOf
*/
public function testConstructor()
{
$this->assertInstanceOf(Plan::class, $this->obj);
}

public function testRequiredParameters()
{
Expand Down
7 changes: 4 additions & 3 deletions tests/Domains/DirectPreApproval/PreApprovalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ protected function setUp()
$this->obj = new PreApproval();
}

/**
* @todo implement assertInstanceOf
*/
public function testConstructor()
{
$this->assertInstanceOf(PreApproval::class, $this->obj);
}

public function testRequiredParameters()
{
Expand Down
7 changes: 4 additions & 3 deletions tests/Domains/DirectPreApproval/ReceiverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ protected function setUp()
$this->obj = new Receiver();
}

/**
* @todo implements test assertInstanceOf
*/
public function testConstructor()
{
$this->assertInstanceOf(Receiver::class, $this->obj);
}

public function testRequiredParameters()
{
Expand Down
7 changes: 4 additions & 3 deletions tests/Domains/DirectPreApproval/SenderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ protected function setUp()
$this->obj = new Sender();
}

/**
* @todo implements test assertInstanceOf
*/
public function testConstructor()
{
$this->assertInstanceOf(Sender::class, $this->obj);
}

public function testRequiredParameters()
{
Expand Down

0 comments on commit fecba60

Please sign in to comment.