mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
59 lines
880 B
PHP
59 lines
880 B
PHP
<?php
|
|
|
|
namespace Tests\Unit;
|
|
|
|
use App\DataMapper\CompanySettings;
|
|
use Tests\TestCase;
|
|
|
|
/**
|
|
* @test
|
|
* @covers App\DataMapper\CompanySettings
|
|
*/
|
|
class CompanySettingsTest extends TestCase
|
|
{
|
|
|
|
public function setUp() :void
|
|
{
|
|
|
|
parent::setUp();
|
|
|
|
$this->company_settings = CompanySettings::defaults();
|
|
|
|
}
|
|
|
|
public function testTimezoneId()
|
|
{
|
|
|
|
$this->assertEquals($this->company_settings->timezone_id, 15);
|
|
|
|
}
|
|
|
|
public function testCurrencyId()
|
|
{
|
|
|
|
$this->assertEquals($this->company_settings->currency_id, 1);
|
|
|
|
}
|
|
|
|
public function testLanguageId()
|
|
{
|
|
|
|
$this->assertEquals($this->company_settings->language_id, 1);
|
|
|
|
}
|
|
|
|
public function testPropertyIsNotset()
|
|
{
|
|
|
|
$this->assertFalse(isset($this->company_settings->custom_label1));
|
|
|
|
}
|
|
|
|
public function testPropertyIsSet()
|
|
{
|
|
|
|
$this->assertTrue(isset($this->company_settings->currency_id));
|
|
|
|
}
|
|
}
|