mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Minor fixes for tests
This commit is contained in:
parent
c231dca308
commit
3f9bea3f91
@ -1 +1 @@
|
||||
5.0.24
|
||||
5.0.25
|
@ -1191,6 +1191,8 @@ class Import implements ShouldQueue
|
||||
if (! $user) {
|
||||
$user = UserFactory::create($this->company->account->id);
|
||||
}
|
||||
|
||||
info("getting user id = {$user->id} - {$user->email}");
|
||||
|
||||
return $user;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ class ClientObserver
|
||||
*/
|
||||
public function created(Client $client)
|
||||
{
|
||||
WebhookHandler::dispatch(Webhook::EVENT_CREATE_CLIENT, $client);
|
||||
WebhookHandler::dispatch(Webhook::EVENT_CREATE_CLIENT, $client, $client->company);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -36,7 +36,7 @@ class ClientObserver
|
||||
*/
|
||||
public function updated(Client $client)
|
||||
{
|
||||
WebhookHandler::dispatch(Webhook::EVENT_UPDATE_CLIENT, $client);
|
||||
WebhookHandler::dispatch(Webhook::EVENT_UPDATE_CLIENT, $client, $client->company);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -47,7 +47,7 @@ class ClientObserver
|
||||
*/
|
||||
public function deleted(Client $client)
|
||||
{
|
||||
WebhookHandler::dispatch(Webhook::EVENT_DELETE_CLIENT, $client);
|
||||
WebhookHandler::dispatch(Webhook::EVENT_DELETE_CLIENT, $client, $client->company);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -25,7 +25,7 @@ class ExpenseObserver
|
||||
*/
|
||||
public function created(Expense $expense)
|
||||
{
|
||||
WebhookHandler::dispatch(Webhook::EVENT_CREATE_EXPENSE, $expense);
|
||||
WebhookHandler::dispatch(Webhook::EVENT_CREATE_EXPENSE, $expense, $expense->company);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -36,7 +36,7 @@ class ExpenseObserver
|
||||
*/
|
||||
public function updated(Expense $expense)
|
||||
{
|
||||
WebhookHandler::dispatch(Webhook::EVENT_UPDATE_EXPENSE, $expense);
|
||||
WebhookHandler::dispatch(Webhook::EVENT_UPDATE_EXPENSE, $expense, $expense->company);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -47,7 +47,7 @@ class ExpenseObserver
|
||||
*/
|
||||
public function deleted(Expense $expense)
|
||||
{
|
||||
WebhookHandler::dispatch(Webhook::EVENT_DELETE_EXPENSE, $expense);
|
||||
WebhookHandler::dispatch(Webhook::EVENT_DELETE_EXPENSE, $expense, $expense->company);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -26,7 +26,7 @@ class InvoiceObserver
|
||||
*/
|
||||
public function created(Invoice $invoice)
|
||||
{
|
||||
WebhookHandler::dispatch(Webhook::EVENT_CREATE_INVOICE, $invoice);
|
||||
WebhookHandler::dispatch(Webhook::EVENT_CREATE_INVOICE, $invoice, $invoice->company);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -37,7 +37,7 @@ class InvoiceObserver
|
||||
*/
|
||||
public function updated(Invoice $invoice)
|
||||
{
|
||||
WebhookHandler::dispatch(Webhook::EVENT_UPDATE_INVOICE, $invoice);
|
||||
WebhookHandler::dispatch(Webhook::EVENT_UPDATE_INVOICE, $invoice, $invoice->company);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -48,7 +48,7 @@ class InvoiceObserver
|
||||
*/
|
||||
public function deleted(Invoice $invoice)
|
||||
{
|
||||
WebhookHandler::dispatch(Webhook::EVENT_DELETE_INVOICE, $invoice);
|
||||
WebhookHandler::dispatch(Webhook::EVENT_DELETE_INVOICE, $invoice, $invoice->company);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -26,7 +26,7 @@ class PaymentObserver
|
||||
*/
|
||||
public function created(Payment $payment)
|
||||
{
|
||||
WebhookHandler::dispatch(Webhook::EVENT_CREATE_PAYMENT, $payment);
|
||||
WebhookHandler::dispatch(Webhook::EVENT_CREATE_PAYMENT, $payment, $payment->company);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -47,7 +47,7 @@ class PaymentObserver
|
||||
*/
|
||||
public function deleted(Payment $payment)
|
||||
{
|
||||
WebhookHandler::dispatch(Webhook::EVENT_DELETE_PAYMENT, $payment);
|
||||
WebhookHandler::dispatch(Webhook::EVENT_DELETE_PAYMENT, $payment, $payment->company);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -25,7 +25,7 @@ class QuoteObserver
|
||||
*/
|
||||
public function created(Quote $quote)
|
||||
{
|
||||
WebhookHandler::dispatch(Webhook::EVENT_CREATE_QUOTE, $quote);
|
||||
WebhookHandler::dispatch(Webhook::EVENT_CREATE_QUOTE, $quote, $quote->company);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -36,7 +36,7 @@ class QuoteObserver
|
||||
*/
|
||||
public function updated(Quote $quote)
|
||||
{
|
||||
WebhookHandler::dispatch(Webhook::EVENT_UPDATE_QUOTE, $quote);
|
||||
WebhookHandler::dispatch(Webhook::EVENT_UPDATE_QUOTE, $quote, $quote->company);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -47,7 +47,7 @@ class QuoteObserver
|
||||
*/
|
||||
public function deleted(Quote $quote)
|
||||
{
|
||||
WebhookHandler::dispatch(Webhook::EVENT_DELETE_QUOTE, $quote);
|
||||
WebhookHandler::dispatch(Webhook::EVENT_DELETE_QUOTE, $quote, $quote->company);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -25,7 +25,7 @@ class TaskObserver
|
||||
*/
|
||||
public function created(Task $task)
|
||||
{
|
||||
WebhookHandler::dispatch(Webhook::EVENT_CREATE_TASK, $task);
|
||||
WebhookHandler::dispatch(Webhook::EVENT_CREATE_TASK, $task, $task->company);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -36,7 +36,7 @@ class TaskObserver
|
||||
*/
|
||||
public function updated(Task $task)
|
||||
{
|
||||
WebhookHandler::dispatch(Webhook::EVENT_UPDATE_TASK, $task);
|
||||
WebhookHandler::dispatch(Webhook::EVENT_UPDATE_TASK, $task, $task->company);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -47,7 +47,7 @@ class TaskObserver
|
||||
*/
|
||||
public function deleted(Task $task)
|
||||
{
|
||||
WebhookHandler::dispatch(Webhook::EVENT_DELETE_TASK, $task);
|
||||
WebhookHandler::dispatch(Webhook::EVENT_DELETE_TASK, $task, $task->company);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -12,7 +12,7 @@ return [
|
||||
'require_https' => env('REQUIRE_HTTPS', true),
|
||||
'app_url' => rtrim(env('APP_URL', ''), '/').'/',
|
||||
'app_domain' => env('APP_DOMAIN', ''),
|
||||
'app_version' => '5.0.24',
|
||||
'app_version' => '5.0.25',
|
||||
'minimum_client_version' => '5.0.16',
|
||||
'terms_version' => '1.0.1',
|
||||
'api_secret' => env('API_SECRET', false),
|
||||
|
Loading…
Reference in New Issue
Block a user