mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-28 19:18:58 -04:00
25 lines
634 B
PHP
25 lines
634 B
PHP
<?php
|
|
|
|
namespace Tests\Config;
|
|
|
|
use CodeIgniter\Test\CIUnitTestCase;
|
|
use Config\OSPOS;
|
|
use ReflectionMethod;
|
|
|
|
class OSPOSTest extends CIUnitTestCase
|
|
{
|
|
public function testGetDefaultSettings_ProvidesSaleTypeOptionKeys(): void
|
|
{
|
|
$config = new class extends OSPOS {
|
|
public function __construct() {}
|
|
};
|
|
|
|
$method = new ReflectionMethod(OSPOS::class, 'getDefaultSettings');
|
|
$method->setAccessible(true);
|
|
$settings = $method->invoke($config);
|
|
|
|
$this->assertArrayHasKey('invoice_enable', $settings);
|
|
$this->assertArrayHasKey('work_order_enable', $settings);
|
|
}
|
|
}
|