mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-01-24 03:08:40 +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);
|
||||
$this->module->apiSettingsGet($request, $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
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ class ModuleTest extends \PHPUnit\Framework\TestCase
|
|||
*/
|
||||
public function testInvalidStatus() : void
|
||||
{
|
||||
self::expectException(\phpOMS\Stdlib\Base\Exception\InvalidEnumValue::class);
|
||||
$this->expectException(\phpOMS\Stdlib\Base\Exception\InvalidEnumValue::class);
|
||||
|
||||
$this->module->setStatus(9999);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user