mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Tests for settings
This commit is contained in:
parent
ecf7f66cfe
commit
a6146ee468
39
tests/Unit/SettingsSaverTest.php
Normal file
39
tests/Unit/SettingsSaverTest.php
Normal file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* Invoice Ninja (https://invoiceninja.com).
|
||||
*
|
||||
* @link https://github.com/invoiceninja/invoiceninja source repository
|
||||
*
|
||||
* @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com)
|
||||
*
|
||||
* @license https://opensource.org/licenses/AAL
|
||||
*/
|
||||
namespace Tests\Unit;
|
||||
|
||||
use App\DataMapper\CompanySettings;
|
||||
use App\Utils\Traits\SettingsSaver;
|
||||
use Tests\TestCase;
|
||||
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
class SettingsSaverTest extends TestCase
|
||||
{
|
||||
use SettingsSaver;
|
||||
|
||||
public function setUp() :void
|
||||
{
|
||||
parent::setUp();
|
||||
}
|
||||
|
||||
public function testNullValueForStringTest()
|
||||
{
|
||||
$key = 'show_all_tasks_client_portal';
|
||||
$value = null;
|
||||
|
||||
$result = $this->checkAttribute($key, $value);
|
||||
|
||||
$this->assertFalse($result);
|
||||
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user