From 72511899506121c177b27de24d3d64176b0e6270 Mon Sep 17 00:00:00 2001 From: Geoff Taylor Date: Thu, 2 May 2024 21:24:00 -0400 Subject: [PATCH] devops: tests updated --- tests/codeception/wpunit/QuerySuccessfulConstraintTest.php | 2 +- tests/phpunit/unit/test-querysuccessfulconstraint.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/codeception/wpunit/QuerySuccessfulConstraintTest.php b/tests/codeception/wpunit/QuerySuccessfulConstraintTest.php index f8662a6..a123b25 100644 --- a/tests/codeception/wpunit/QuerySuccessfulConstraintTest.php +++ b/tests/codeception/wpunit/QuerySuccessfulConstraintTest.php @@ -158,6 +158,7 @@ public function testFailingValidationRules() { $constraint = new QuerySuccessfulConstraint( $this->logger, [ + ['InvalidRuleObject'], [ 'type' => 'FIELD', 'path' => 'invalidNodePath', @@ -229,7 +230,6 @@ public function testFailingValidationRules() { 'path' => '', 'expected_value' => [], ], - ['InvalidRuleObject'], ] ); $this->assertFalse($constraint->matches($response)); diff --git a/tests/phpunit/unit/test-querysuccessfulconstraint.php b/tests/phpunit/unit/test-querysuccessfulconstraint.php index ccc49e4..c64343d 100644 --- a/tests/phpunit/unit/test-querysuccessfulconstraint.php +++ b/tests/phpunit/unit/test-querysuccessfulconstraint.php @@ -175,6 +175,7 @@ public function test_FailingValidationRules() { $constraint = new QuerySuccessfulConstraint( $this->logger, [ + ['InvalidRuleObject'], [ 'type' => 'FIELD', 'path' => 'invalidNodePath', @@ -246,7 +247,6 @@ public function test_FailingValidationRules() { 'path' => '', 'expected_value' => [], ], - ['InvalidRuleObject'], ] ); $this->assertFalse($constraint->matches($response));