Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Rom1-B committed Feb 7, 2025
1 parent 56a9a6a commit c059e2d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions phpunit/functional/RuleMailCollectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public static function headerCriteriasProvider()
],
],
],
'rule_match' => true,
'result_match' => true,
],
[
'headers' =>
Expand All @@ -175,7 +175,7 @@ public static function headerCriteriasProvider()
],
],
],
'rule_match' => false,
'result_match' => false,
],
[
'headers' =>
Expand All @@ -198,7 +198,7 @@ public static function headerCriteriasProvider()
],
],
],
'rule_match' => false,
'result_match' => false,
],
[
'headers' =>
Expand All @@ -220,7 +220,7 @@ public static function headerCriteriasProvider()
],
],
],
'rule_match' => true,
'result_match' => true,
],
];
}
Expand All @@ -231,7 +231,7 @@ public static function headerCriteriasProvider()
public function testHeaderCriterias(
array $headers,
array $rule_param,
bool $rule_match
bool $result_match
) {
$this->login();

Expand All @@ -242,7 +242,7 @@ public function testHeaderCriterias(
// Create rule
$rule = new \RuleMailCollector();
$rule_id = $rule->add($rule_input = [
'name' => 'test assign entity based on group',
'name' => __FUNCTION__,
'match' => $rule_param['match'],
'is_active' => 1,
'sub_type' => 'RuleMailCollector',
Expand Down Expand Up @@ -275,7 +275,7 @@ public function testHeaderCriterias(
['headers' => $headers]
);

if ($rule_match) {
if ($result_match) {
$this->assertEquals(
[
'_refuse_email_no_response' => 1,
Expand Down

0 comments on commit c059e2d

Please sign in to comment.