mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-10-25 20:52:54 -04:00
* Add URL link directly to client view in list view * Implement Form requests for all client routes * Refactor how permissions are implemented on Datatable row action menus * fixes for tests
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, 25);
|
|
}
|
|
|
|
public function testIsObject()
|
|
{
|
|
$user_settings = DefaultSettings::userSettings();
|
|
|
|
$this->assertInternalType('object',$user_settings->Client->datatable->column_visibility);
|
|
|
|
}
|
|
} |