Change PDF engine for tests
This commit is contained in:
parent
d6c337352f
commit
6e3ea0043b
|
|
@ -41,6 +41,7 @@ jobs:
|
||||||
NINJA_LICENSE: ${{ secrets.ninja_license }}
|
NINJA_LICENSE: ${{ secrets.ninja_license }}
|
||||||
TRAVIS: true
|
TRAVIS: true
|
||||||
MAIL_MAILER: log
|
MAIL_MAILER: log
|
||||||
|
PDF_GENERATOR: hosted_ninja
|
||||||
|
|
||||||
services:
|
services:
|
||||||
mariadb:
|
mariadb:
|
||||||
|
|
|
||||||
|
|
@ -23,15 +23,10 @@ use App\Utils\Ninja;
|
||||||
function nlog($output, $context = []): void
|
function nlog($output, $context = []): void
|
||||||
{
|
{
|
||||||
|
|
||||||
if (getenv('GITHUB_ACTIONS')) {
|
// if (getenv('GITHUB_ACTIONS')) {
|
||||||
// Debug level
|
// // Debug level
|
||||||
echo "::debug::".print_r($output, true)."\n";
|
// echo "::debug::".print_r($output, true)."\n";
|
||||||
|
// }
|
||||||
// Different log levels available:
|
|
||||||
// echo "::notice::$message\n";
|
|
||||||
// echo "::warning::$message\n";
|
|
||||||
// echo "::error::$message\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (! config('ninja.expanded_logging')) {
|
if (! config('ninja.expanded_logging')) {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -822,8 +822,6 @@ class ClientApiTest extends TestCase
|
||||||
'X-API-TOKEN' => $this->token,
|
'X-API-TOKEN' => $this->token,
|
||||||
])->postJson('/api/v1/client_statement', $data);
|
])->postJson('/api/v1/client_statement', $data);
|
||||||
|
|
||||||
echo (print_r($response->getContent(), true));
|
|
||||||
|
|
||||||
$response->assertStatus(200);
|
$response->assertStatus(200);
|
||||||
|
|
||||||
$this->assertTrue($response->headers->get('content-type') == 'application/pdf');
|
$this->assertTrue($response->headers->get('content-type') == 'application/pdf');
|
||||||
|
|
|
||||||
|
|
@ -115,9 +115,6 @@ class PurchaseOrderTest extends TestCase
|
||||||
'X-API-TOKEN' => $this->token,
|
'X-API-TOKEN' => $this->token,
|
||||||
])->postJson("/api/v1/purchase_orders/bulk", $data);
|
])->postJson("/api/v1/purchase_orders/bulk", $data);
|
||||||
|
|
||||||
|
|
||||||
echo $response->getContent();
|
|
||||||
|
|
||||||
$response->assertStatus(200);
|
$response->assertStatus(200);
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -131,9 +128,6 @@ class PurchaseOrderTest extends TestCase
|
||||||
'X-API-TOKEN' => $this->token,
|
'X-API-TOKEN' => $this->token,
|
||||||
])->postJson("/api/v1/purchase_orders/bulk", $data);
|
])->postJson("/api/v1/purchase_orders/bulk", $data);
|
||||||
|
|
||||||
|
|
||||||
echo(print_r($response->getContent(), true));
|
|
||||||
|
|
||||||
$response->assertStatus(200);
|
$response->assertStatus(200);
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue