diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 8f8711c729..2a3b53adac 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -41,6 +41,7 @@ jobs: NINJA_LICENSE: ${{ secrets.ninja_license }} TRAVIS: true MAIL_MAILER: log + PDF_GENERATOR: hosted_ninja services: mariadb: diff --git a/app/Helpers/Generic.php b/app/Helpers/Generic.php index 96ffd1a3d7..4e8b71f2c8 100644 --- a/app/Helpers/Generic.php +++ b/app/Helpers/Generic.php @@ -23,15 +23,10 @@ use App\Utils\Ninja; 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; diff --git a/tests/Feature/ClientApiTest.php b/tests/Feature/ClientApiTest.php index 16b68c6077..33f6b37a6a 100644 --- a/tests/Feature/ClientApiTest.php +++ b/tests/Feature/ClientApiTest.php @@ -822,8 +822,6 @@ class ClientApiTest extends TestCase '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'); diff --git a/tests/Feature/PurchaseOrderTest.php b/tests/Feature/PurchaseOrderTest.php index f8af7d0bcd..6a68a18c1a 100644 --- a/tests/Feature/PurchaseOrderTest.php +++ b/tests/Feature/PurchaseOrderTest.php @@ -115,9 +115,6 @@ class PurchaseOrderTest extends TestCase 'X-API-TOKEN' => $this->token, ])->postJson("/api/v1/purchase_orders/bulk", $data); - - echo $response->getContent(); - $response->assertStatus(200); @@ -131,9 +128,6 @@ class PurchaseOrderTest extends TestCase 'X-API-TOKEN' => $this->token, ])->postJson("/api/v1/purchase_orders/bulk", $data); - - echo(print_r($response->getContent(), true)); - $response->assertStatus(200); $data = [