Skip to content

Commit

Permalink
Test for creating model classes (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubawerlos committed Aug 17, 2023
1 parent 8d2e671 commit a71d0d8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Model/Objects/RequestBody/Transaction.php
Expand Up @@ -59,6 +59,11 @@ class Transaction extends Objects
*/
public $payer;

/**
* @var Callbacks
*/
public $callbacks;

public function getRequiredFields()
{
return [
Expand Down
Expand Up @@ -59,6 +59,11 @@ class TransactionWithInstantRedirection extends Objects
*/
public $payer;

/**
* @var Callbacks
*/
public $callbacks;

public function getRequiredFields()
{
return [
Expand Down
4 changes: 4 additions & 0 deletions tests/Model/ModelsTest.php
Expand Up @@ -17,6 +17,10 @@ class ModelsTest extends TestCase
public function testModel($class)
{
self::assertTrue(class_exists($class) || interface_exists($class));

if (class_exists($class)) {
new $class();
}
}

public static function dataModel()
Expand Down

0 comments on commit a71d0d8

Please sign in to comment.