Skip to content

Commit

Permalink
Fix failing tests 2
Browse files Browse the repository at this point in the history
  • Loading branch information
SOHELAHMED7 committed Sep 6, 2024
1 parent b8192f5 commit be59c82
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/specs/relations_in_faker/app/models/base/B123.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function rules()
return [
'trim' => [['name'], 'trim'],
'c123_id_integer' => [['c123_id'], 'integer'],
'c123_id_exist' => [['c123_id'], 'exist', 'targetRelation' => 'C123'],
'c123_id_exist' => [['c123_id'], 'exist', 'targetRelation' => 'c123'],
'name_string' => [['name'], 'string'],
];
}
Expand Down
2 changes: 1 addition & 1 deletion tests/specs/relations_in_faker/app/models/base/E123.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function rules()
return [
'trim' => [['name'], 'trim'],
'b123_id_integer' => [['b123_id'], 'integer'],
'b123_id_exist' => [['b123_id'], 'exist', 'targetRelation' => 'B123'],
'b123_id_exist' => [['b123_id'], 'exist', 'targetRelation' => 'b123'],
'name_string' => [['name'], 'string'],
];
}
Expand Down
6 changes: 3 additions & 3 deletions tests/specs/relations_in_faker/app/models/base/Routing.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ public function rules()
'trim' => [['path', 'service'], 'trim'],
'required' => [['domain_id'], 'required'],
'domain_id_integer' => [['domain_id'], 'integer'],
'domain_id_exist' => [['domain_id'], 'exist', 'targetRelation' => 'Domain'],
'domain_id_exist' => [['domain_id'], 'exist', 'targetRelation' => 'domain'],
'd123_id_integer' => [['d123_id'], 'integer'],
'd123_id_exist' => [['d123_id'], 'exist', 'targetRelation' => 'D123'],
'd123_id_exist' => [['d123_id'], 'exist', 'targetRelation' => 'd123'],
'a123_id_integer' => [['a123_id'], 'integer'],
'a123_id_exist' => [['a123_id'], 'exist', 'targetRelation' => 'A123'],
'a123_id_exist' => [['a123_id'], 'exist', 'targetRelation' => 'a123'],
'path_string' => [['path'], 'string', 'max' => 255],
'ssl_boolean' => [['ssl'], 'boolean'],
'redirect_to_ssl_boolean' => [['redirect_to_ssl'], 'boolean'],
Expand Down

0 comments on commit be59c82

Please sign in to comment.