Skip to content

Commit

Permalink
Change PDF engine for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
turbo124 committed Jan 6, 2025
1 parent d6c3373 commit 6e3ea00
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 17 deletions.
1 change: 1 addition & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
NINJA_LICENSE: ${{ secrets.ninja_license }}
TRAVIS: true
MAIL_MAILER: log
PDF_GENERATOR: hosted_ninja

services:
mariadb:
Expand Down
13 changes: 4 additions & 9 deletions app/Helpers/Generic.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,10 @@
function nlog($output, $context = []): void
{

if (getenv('GITHUB_ACTIONS')) {
// Debug level
echo "::debug::".print_r($output, true)."\n";

// Different log levels available:
// echo "::notice::$message\n";
// echo "::warning::$message\n";
// echo "::error::$message\n";
}
// if (getenv('GITHUB_ACTIONS')) {
// // Debug level
// echo "::debug::".print_r($output, true)."\n";
// }

if (! config('ninja.expanded_logging')) {
return;
Expand Down
2 changes: 0 additions & 2 deletions tests/Feature/ClientApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -822,8 +822,6 @@ public function testClientStatement()
'X-API-TOKEN' => $this->token,
])->postJson('/api/v1/client_statement', $data);

echo (print_r($response->getContent(), true));

$response->assertStatus(200);

$this->assertTrue($response->headers->get('content-type') == 'application/pdf');
Expand Down
6 changes: 0 additions & 6 deletions tests/Feature/PurchaseOrderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,6 @@ public function testPurchaseOrderBulkActions()
'X-API-TOKEN' => $this->token,
])->postJson("/api/v1/purchase_orders/bulk", $data);


echo $response->getContent();

$response->assertStatus(200);


Expand All @@ -131,9 +128,6 @@ public function testPurchaseOrderBulkActions()
'X-API-TOKEN' => $this->token,
])->postJson("/api/v1/purchase_orders/bulk", $data);


echo(print_r($response->getContent(), true));

$response->assertStatus(200);

$data = [
Expand Down

0 comments on commit 6e3ea00

Please sign in to comment.