Skip to content

Commit

Permalink
Fixed Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
StanBarrows committed Sep 12, 2024
1 parent 8dfbdd0 commit ddcc565
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 20 deletions.
1 change: 0 additions & 1 deletion src/Client/Type/DownloadFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

class DownloadFile
{

/**
* @var string
*/
Expand Down
17 changes: 7 additions & 10 deletions tests/Feature/DownloadFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,14 @@

it('b2b service downloadFile test', function () {

$config = config('postfinance-b2b');

$payerId = config('postfinance-b2b.tests.payer_id');
$billerId = '41101000000834484'; #config('postfinance-b2b.tests.biller_id');
$transactionId = '9360415238'; #config('postfinance-b2b.tests.transaction_id');
$fileType = config('postfinance-b2b.tests.file_type');

$client = PostfinanceClientFactory::factory($config);
$response = $client->downloadFile(new GetInvoicePayer($payerId, $billerId, $transactionId, $fileType));

$config = config('postfinance-b2b');

$payerId = config('postfinance-b2b.tests.payer_id');
$billerId = '41101000000834484'; //config('postfinance-b2b.tests.biller_id');
$transactionId = '9360415238'; //config('postfinance-b2b.tests.transaction_id');
$fileType = config('postfinance-b2b.tests.file_type');

$client = PostfinanceClientFactory::factory($config);
$response = $client->downloadFile(new GetInvoicePayer($payerId, $billerId, $transactionId, $fileType));

})->group('get', 'test')->only();
18 changes: 9 additions & 9 deletions tests/Feature/GetInvoicePayerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@

it('b2b service getInvoicePayer test', function () {

$config = config('postfinance-b2b');
$config = config('postfinance-b2b');

$payerId = config('postfinance-b2b.tests.payer_id');
$billerId = '41101000000834484'; #config('postfinance-b2b.tests.biller_id');
$transactionId = '9360415238'; #config('postfinance-b2b.tests.transaction_id');
$fileType = config('postfinance-b2b.tests.file_type');
$payerId = config('postfinance-b2b.tests.payer_id');
$billerId = '41101000000834484'; //config('postfinance-b2b.tests.biller_id');
$transactionId = '9360415238'; //config('postfinance-b2b.tests.transaction_id');
$fileType = config('postfinance-b2b.tests.file_type');

$client = PostfinanceClientFactory::factory($config);
$response = $client->getInvoicePayer(new GetInvoicePayer($payerId, $billerId, $transactionId, $fileType));
$client = PostfinanceClientFactory::factory($config);
$response = $client->getInvoicePayer(new GetInvoicePayer($payerId, $billerId, $transactionId, $fileType));

ray($response->getGetInvoicePayerResult()->getData());
expect($response->getGetInvoicePayerResult()->getData())->toBeString()->not()->toBeEmpty();
ray($response->getGetInvoicePayerResult()->getData());
expect($response->getGetInvoicePayerResult()->getData())->toBeString()->not()->toBeEmpty();
})->group('get', 'test')->only();

0 comments on commit ddcc565

Please sign in to comment.