mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-02-12 10:48:41 +00:00
fix tests
This commit is contained in:
parent
03d0346cf3
commit
9bf628cb11
|
|
@ -55,6 +55,9 @@ trait ApiControllerSettingsTrait
|
||||||
$request->setData('name', Settings::PASSWORD_INTERVAL);
|
$request->setData('name', Settings::PASSWORD_INTERVAL);
|
||||||
$this->module->apiSettingsGet($request, $response);
|
$this->module->apiSettingsGet($request, $response);
|
||||||
self::assertEquals('60', $response->get('')['response']);
|
self::assertEquals('60', $response->get('')['response']);
|
||||||
|
|
||||||
|
$request->setData('settings', \json_encode([['name' => Settings::PASSWORD_INTERVAL, 'content' => '90']]), true);
|
||||||
|
$this->module->apiSettingsSet($request, $response);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testApiAccountLocalizationLoadSet() : void
|
public function testApiAccountLocalizationLoadSet() : void
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@ class ModuleTest extends \PHPUnit\Framework\TestCase
|
||||||
*/
|
*/
|
||||||
public function testInvalidStatus() : void
|
public function testInvalidStatus() : void
|
||||||
{
|
{
|
||||||
self::expectException(\phpOMS\Stdlib\Base\Exception\InvalidEnumValue::class);
|
$this->expectException(\phpOMS\Stdlib\Base\Exception\InvalidEnumValue::class);
|
||||||
|
|
||||||
$this->module->setStatus(9999);
|
$this->module->setStatus(9999);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user