mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 00:11:35 +02:00
5.1.36
This commit is contained in:
parent
6c6a142f36
commit
69f6179e6a
@ -1 +1 @@
|
||||
5.1.35
|
||||
5.1.36
|
@ -114,12 +114,12 @@ class PaymentFailureObject
|
||||
|
||||
$text = '';
|
||||
|
||||
foreach($this->invoices as $invoice)
|
||||
{
|
||||
// foreach($this->invoices as $invoice)
|
||||
// {
|
||||
|
||||
$text .= ctrans('texts.notification_invoice_payment_failed_subject', ['invoice' => $invoice->number]) . "\n";
|
||||
// $text .= ctrans('texts.notification_invoice_payment_failed_subject', ['invoice' => $invoice->number]) . "\n";
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
return $text;
|
||||
|
||||
|
@ -124,7 +124,6 @@ class SubscriptionService
|
||||
|
||||
$response = $this->triggerWebhook($context);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* Starts the process to create a trial
|
||||
|
@ -14,7 +14,7 @@ return [
|
||||
'require_https' => env('REQUIRE_HTTPS', true),
|
||||
'app_url' => rtrim(env('APP_URL', ''), '/'),
|
||||
'app_domain' => env('APP_DOMAIN', ''),
|
||||
'app_version' => '5.1.35',
|
||||
'app_version' => '5.1.36',
|
||||
'minimum_client_version' => '5.0.16',
|
||||
'terms_version' => '1.0.1',
|
||||
'api_secret' => env('API_SECRET', false),
|
||||
|
@ -61,5 +61,15 @@ class PlanTest extends TestCase
|
||||
|
||||
}
|
||||
|
||||
public function testTrialFilter()
|
||||
{
|
||||
$plans = collect(['trial_pro','trial_enterprise','no_freebies']);
|
||||
|
||||
$filtered_plans = $plans->filter(function ($plan){
|
||||
return strpos($plan, 'trial_') !== false;
|
||||
});
|
||||
|
||||
$this->assertEquals($filtered_plans->count(), 2);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user