1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00

Minor fixes

This commit is contained in:
= 2021-08-18 22:12:10 +10:00
parent 357b8929a6
commit f07905a0bc
2 changed files with 8 additions and 2 deletions

View File

@ -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}";

View File

@ -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());
}