Skip to content
Snippets Groups Projects
Commit c0b9dcb1 authored by Pegane Nestor's avatar Pegane Nestor
Browse files

FIX #7659 unit test for updateRule OK

parent 44da9306
No related branches found
No related tags found
No related merge requests found
...@@ -71,8 +71,8 @@ class PasswordModel ...@@ -71,8 +71,8 @@ class PasswordModel
{ {
ValidatorModel::notEmpty($aArgs, ['id']); ValidatorModel::notEmpty($aArgs, ['id']);
ValidatorModel::intVal($aArgs, ['id', 'value']); ValidatorModel::intVal($aArgs, ['id', 'value']);
ValidatorModel::boolType($aArgs, ['enabled']); ValidatorModel::stringType($aArgs, ['enabled']);
DatabaseModel::update([ DatabaseModel::update([
'table' => 'password_rules', 'table' => 'password_rules',
'set' => [ 'set' => [
......
...@@ -33,7 +33,7 @@ class PasswordControllerTest extends TestCase ...@@ -33,7 +33,7 @@ class PasswordControllerTest extends TestCase
[ [
'id' => 1, 'id' => 1,
'value' => 5, 'value' => 5,
'enabled' => 'true', 'enabled' => true,
] ]
] ]
]; ];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment