mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-04 10:14:35 -04:00
* Clean up Client Show * Working on Show Client menu action * working on client view permissions * Finishing up Client Statement View * Workig on client settings * add mix manifest * css for client settings * Client Settings * Working on Client Settings * Implement StartupCheck and static seeders * Implement cached statics in view composers * Working on client settings * Payment Terms * Working on Payment Terms View Composer * Payment Terms builder * Client Settings * refactor companies table * Refactor for company settings, move settings to json * Set object cast on settings column of Company table * Fixes for refactor of companies and clients table * Test * Client Settings Datamapper * Client Settings * Default client language * Client Settings * Working on client settings options * Client Settings * Settings Json serialization/deserialization handling
36 lines
627 B
PHP
36 lines
627 B
PHP
<?php
|
|
|
|
namespace Tests\Unit;
|
|
|
|
use App\DataMapper\DefaultSettings;
|
|
use Tests\TestCase;
|
|
|
|
/**
|
|
* @test
|
|
* @covers App\DataMapper\DefaultSettings
|
|
*/
|
|
class DefaultSettingsTest extends TestCase
|
|
{
|
|
|
|
public function setUp()
|
|
{
|
|
|
|
parent::setUp();
|
|
|
|
}
|
|
|
|
public function testDefaultUserSettings()
|
|
{
|
|
$user_settings = DefaultSettings::userSettings();
|
|
|
|
$this->assertEquals($user_settings->Client->datatable->per_page, 25);
|
|
}
|
|
|
|
public function testIsObject()
|
|
{
|
|
$user_settings = DefaultSettings::userSettings();
|
|
|
|
$this->assertInternalType('object',$user_settings->Client->datatable->column_visibility);
|
|
|
|
}
|
|
} |