mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 08:21:34 +02:00
Fixes for tests
This commit is contained in:
parent
3e916e0f1f
commit
add5a9d9f7
@ -209,7 +209,7 @@ class BaseImport
|
|||||||
'error' => $message,
|
'error' => $message,
|
||||||
];
|
];
|
||||||
|
|
||||||
nlog($ex->getMessage());
|
nlog("Ingest {$ex->getMessage()}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -166,7 +166,6 @@ class Csv extends BaseImport implements ImportInterface
|
|||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
nlog($data);
|
|
||||||
|
|
||||||
$this->request_name = StorePaymentRequest::class;
|
$this->request_name = StorePaymentRequest::class;
|
||||||
$this->repository_name = PaymentRepository::class;
|
$this->repository_name = PaymentRepository::class;
|
||||||
@ -179,8 +178,6 @@ nlog($data);
|
|||||||
|
|
||||||
$payment_count = $this->ingest($data, $entity_type);
|
$payment_count = $this->ingest($data, $entity_type);
|
||||||
|
|
||||||
nlog($payment_count);
|
|
||||||
|
|
||||||
$this->entity_count['payments'] = $payment_count;
|
$this->entity_count['payments'] = $payment_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -145,7 +145,7 @@ class ShopInvoiceTest extends TestCase
|
|||||||
$response = $this->withHeaders([
|
$response = $this->withHeaders([
|
||||||
'X-API-SECRET' => config('ninja.api_secret'),
|
'X-API-SECRET' => config('ninja.api_secret'),
|
||||||
'X-API-COMPANY-KEY' => $this->company->company_key,
|
'X-API-COMPANY-KEY' => $this->company->company_key,
|
||||||
])->post('/api/v1/shop/clients/', $data);
|
])->postJson('/api/v1/shop/clients/', $data);
|
||||||
|
|
||||||
$response->assertStatus(200);
|
$response->assertStatus(200);
|
||||||
$arr = $response->json();
|
$arr = $response->json();
|
||||||
@ -165,7 +165,7 @@ class ShopInvoiceTest extends TestCase
|
|||||||
$response = $this->withHeaders([
|
$response = $this->withHeaders([
|
||||||
'X-API-SECRET' => config('ninja.api_secret'),
|
'X-API-SECRET' => config('ninja.api_secret'),
|
||||||
'X-API-COMPANY-KEY' => $this->company->company_key,
|
'X-API-COMPANY-KEY' => $this->company->company_key,
|
||||||
])->post('/api/v1/shop/clients/', $data);
|
])->postJson('/api/v1/shop/clients/', $data);
|
||||||
|
|
||||||
$response->assertStatus(200);
|
$response->assertStatus(200);
|
||||||
$arr = $response->json();
|
$arr = $response->json();
|
||||||
@ -180,7 +180,7 @@ class ShopInvoiceTest extends TestCase
|
|||||||
$response = $this->withHeaders([
|
$response = $this->withHeaders([
|
||||||
'X-API-SECRET' => config('ninja.api_secret'),
|
'X-API-SECRET' => config('ninja.api_secret'),
|
||||||
'X-API-COMPANY-KEY' => $this->company->company_key,
|
'X-API-COMPANY-KEY' => $this->company->company_key,
|
||||||
])->post('/api/v1/shop/invoices/', $invoice_data);
|
])->postJson('/api/v1/shop/invoices/', $invoice_data);
|
||||||
|
|
||||||
$response->assertStatus(200);
|
$response->assertStatus(200);
|
||||||
$arr = $response->json();
|
$arr = $response->json();
|
||||||
|
Loading…
Reference in New Issue
Block a user