diff --git a/CHANGELOG.md b/CHANGELOG.md index aeb99b19..52ce8c56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/tests/Domains/DirectPreApproval/AddressTest.php b/tests/Domains/DirectPreApproval/AddressTest.php index 4a4f69e8..3ba93f32 100644 --- a/tests/Domains/DirectPreApproval/AddressTest.php +++ b/tests/Domains/DirectPreApproval/AddressTest.php @@ -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() { diff --git a/tests/Domains/DirectPreApproval/BillingAddressTest.php b/tests/Domains/DirectPreApproval/BillingAddressTest.php index 9161c10b..fdc85b46 100644 --- a/tests/Domains/DirectPreApproval/BillingAddressTest.php +++ b/tests/Domains/DirectPreApproval/BillingAddressTest.php @@ -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() { diff --git a/tests/Domains/DirectPreApproval/CreditCardTest.php b/tests/Domains/DirectPreApproval/CreditCardTest.php index cf3d69a0..972edfd7 100644 --- a/tests/Domains/DirectPreApproval/CreditCardTest.php +++ b/tests/Domains/DirectPreApproval/CreditCardTest.php @@ -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); + } } diff --git a/tests/Domains/DirectPreApproval/DocumentTest.php b/tests/Domains/DirectPreApproval/DocumentTest.php index 7a2469d0..0f5761f6 100644 --- a/tests/Domains/DirectPreApproval/DocumentTest.php +++ b/tests/Domains/DirectPreApproval/DocumentTest.php @@ -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() { diff --git a/tests/Domains/DirectPreApproval/ExpirationTest.php b/tests/Domains/DirectPreApproval/ExpirationTest.php index 604b8b88..eada430c 100644 --- a/tests/Domains/DirectPreApproval/ExpirationTest.php +++ b/tests/Domains/DirectPreApproval/ExpirationTest.php @@ -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() { diff --git a/tests/Domains/DirectPreApproval/HolderTest.php b/tests/Domains/DirectPreApproval/HolderTest.php index a965b538..d4aced35 100644 --- a/tests/Domains/DirectPreApproval/HolderTest.php +++ b/tests/Domains/DirectPreApproval/HolderTest.php @@ -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); + } } diff --git a/tests/Domains/DirectPreApproval/ItemTest.php b/tests/Domains/DirectPreApproval/ItemTest.php index d7538257..667917b5 100644 --- a/tests/Domains/DirectPreApproval/ItemTest.php +++ b/tests/Domains/DirectPreApproval/ItemTest.php @@ -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() { diff --git a/tests/Domains/DirectPreApproval/PaymentMethodTest.php b/tests/Domains/DirectPreApproval/PaymentMethodTest.php index 5c6b6d3c..8ba48e06 100644 --- a/tests/Domains/DirectPreApproval/PaymentMethodTest.php +++ b/tests/Domains/DirectPreApproval/PaymentMethodTest.php @@ -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() { diff --git a/tests/Domains/DirectPreApproval/PhoneTest.php b/tests/Domains/DirectPreApproval/PhoneTest.php index 66053227..9f709cd5 100644 --- a/tests/Domains/DirectPreApproval/PhoneTest.php +++ b/tests/Domains/DirectPreApproval/PhoneTest.php @@ -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() { diff --git a/tests/Domains/DirectPreApproval/PlanTest.php b/tests/Domains/DirectPreApproval/PlanTest.php index d22abd8a..1228a766 100644 --- a/tests/Domains/DirectPreApproval/PlanTest.php +++ b/tests/Domains/DirectPreApproval/PlanTest.php @@ -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() { diff --git a/tests/Domains/DirectPreApproval/PreApprovalTest.php b/tests/Domains/DirectPreApproval/PreApprovalTest.php index 1f1c1967..efeabd25 100644 --- a/tests/Domains/DirectPreApproval/PreApprovalTest.php +++ b/tests/Domains/DirectPreApproval/PreApprovalTest.php @@ -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() { diff --git a/tests/Domains/DirectPreApproval/ReceiverTest.php b/tests/Domains/DirectPreApproval/ReceiverTest.php index 27451b3b..ce604c50 100644 --- a/tests/Domains/DirectPreApproval/ReceiverTest.php +++ b/tests/Domains/DirectPreApproval/ReceiverTest.php @@ -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() { diff --git a/tests/Domains/DirectPreApproval/SenderTest.php b/tests/Domains/DirectPreApproval/SenderTest.php index 49b0ee78..16034360 100644 --- a/tests/Domains/DirectPreApproval/SenderTest.php +++ b/tests/Domains/DirectPreApproval/SenderTest.php @@ -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() {