mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
commit
84c0fbc056
@ -1 +1 @@
|
|||||||
5.1.35
|
5.1.36
|
@ -114,12 +114,12 @@ class PaymentFailureObject
|
|||||||
|
|
||||||
$text = '';
|
$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;
|
return $text;
|
||||||
|
|
||||||
|
@ -124,7 +124,6 @@ class SubscriptionService
|
|||||||
|
|
||||||
$response = $this->triggerWebhook($context);
|
$response = $this->triggerWebhook($context);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Starts the process to create a trial
|
/* Starts the process to create a trial
|
||||||
|
@ -14,7 +14,7 @@ return [
|
|||||||
'require_https' => env('REQUIRE_HTTPS', true),
|
'require_https' => env('REQUIRE_HTTPS', true),
|
||||||
'app_url' => rtrim(env('APP_URL', ''), '/'),
|
'app_url' => rtrim(env('APP_URL', ''), '/'),
|
||||||
'app_domain' => env('APP_DOMAIN', ''),
|
'app_domain' => env('APP_DOMAIN', ''),
|
||||||
'app_version' => '5.1.35',
|
'app_version' => '5.1.36',
|
||||||
'minimum_client_version' => '5.0.16',
|
'minimum_client_version' => '5.0.16',
|
||||||
'terms_version' => '1.0.1',
|
'terms_version' => '1.0.1',
|
||||||
'api_secret' => env('API_SECRET', false),
|
'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…
x
Reference in New Issue
Block a user