mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Minor fixes
This commit is contained in:
parent
357b8929a6
commit
f07905a0bc
@ -100,7 +100,7 @@ class PaymentNotification implements ShouldQueue
|
||||
$currency_code = $client->getCurrencyCode();
|
||||
|
||||
if (Ninja::isHosted()) {
|
||||
$item .= ' [R]';
|
||||
$item .= ' [R5]';
|
||||
}
|
||||
|
||||
$base = "v=1&tid={$analytics_id}&cid={$client->id}&cu={$currency_code}&ti={$entity_number}";
|
||||
|
@ -11,8 +11,10 @@
|
||||
namespace Tests\Unit;
|
||||
|
||||
use App\Factory\InvoiceInvitationFactory;
|
||||
use App\Models\CompanyToken;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
use Illuminate\Routing\Middleware\ThrottleRequests;
|
||||
use Illuminate\Validation\ValidationException;
|
||||
use Tests\MockAccountData;
|
||||
use Tests\TestCase;
|
||||
|
||||
@ -30,6 +32,9 @@ class InvitationTest extends TestCase
|
||||
$this->withoutMiddleware(
|
||||
ThrottleRequests::class
|
||||
);
|
||||
|
||||
$this->withoutExceptionHandling();
|
||||
|
||||
}
|
||||
|
||||
public function testInvitationSanity()
|
||||
@ -54,9 +59,10 @@ class InvitationTest extends TestCase
|
||||
try {
|
||||
|
||||
$response = $this->withHeaders([
|
||||
'X-API-SECRET' => config('ninja.api_secret'),
|
||||
'X-API-TOKEN' => $this->token,
|
||||
])->put('/api/v1/invoices/'.$this->encodePrimaryKey($this->invoice->id), $this->invoice->toArray());
|
||||
} catch (\Exception $e) {
|
||||
} catch (ValidationException $e) {
|
||||
|
||||
nlog($e->getMessage());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user