mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Fixes for travis date
This commit is contained in:
parent
10e0c8a05f
commit
f5d1e152c2
@ -182,6 +182,9 @@ class GenerateNumberTest extends TestCase
|
||||
|
||||
public function testClientNumberPatternWithDate()
|
||||
{
|
||||
|
||||
date_default_timezone_set('US/Eastern');
|
||||
|
||||
$settings = $this->client->getSettingsByKey('client_number_pattern');
|
||||
$settings->client_number_pattern = '{$date:j}-{$counter}';
|
||||
$this->client->setSettingsByEntity($settings->entity, $settings);
|
||||
@ -191,6 +194,8 @@ class GenerateNumberTest extends TestCase
|
||||
|
||||
public function testClientNumberPatternWithDate2()
|
||||
{
|
||||
date_default_timezone_set('US/Eastern');
|
||||
|
||||
$settings = $this->client->getSettingsByKey('client_number_pattern');
|
||||
$settings->client_number_pattern = '{$date:d M Y}-{$counter}';
|
||||
$this->client->setSettingsByEntity($settings->entity, $settings);
|
||||
|
Loading…
Reference in New Issue
Block a user