mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-10-28 21:24:37 -04:00
* Datamapping JSON Settings * JSON Mapping * User Setting Defaults * Testing Json Mapper * Implemented User Settings - hydrated from JSON format
36 lines
619 B
PHP
36 lines
619 B
PHP
<?php
|
|
|
|
namespace Tests\Unit;
|
|
|
|
use App\DataMapper\DefaultSettings;
|
|
use Tests\TestCase;
|
|
|
|
/**
|
|
* @test
|
|
* @covers App\DataMapper\DefaultSettings
|
|
*/
|
|
class DefaultTest extends TestCase
|
|
{
|
|
|
|
public function setUp()
|
|
{
|
|
|
|
parent::setUp();
|
|
|
|
}
|
|
|
|
public function testDefaultUserSettings()
|
|
{
|
|
$user_settings = DefaultSettings::userSettings();
|
|
|
|
$this->assertEquals($user_settings->Client->datatable->per_page, 20);
|
|
}
|
|
|
|
public function testIsObject()
|
|
{
|
|
$user_settings = DefaultSettings::userSettings();
|
|
|
|
$this->assertInternalType('object',$user_settings->Client->datatable->column_visibility);
|
|
|
|
}
|
|
} |