From 1b36ecb962f073c2e81a93d7074563d1fc477609 Mon Sep 17 00:00:00 2001 From: nathangray Date: Fri, 8 Sep 2017 11:49:28 -0600 Subject: [PATCH] Etemplate - fix a testing bug giving false positives --- api/src/Etemplate/test/WidgetBaseTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Etemplate/test/WidgetBaseTest.php b/api/src/Etemplate/test/WidgetBaseTest.php index 21e8cbcdfd..75eba5f2f5 100644 --- a/api/src/Etemplate/test/WidgetBaseTest.php +++ b/api/src/Etemplate/test/WidgetBaseTest.php @@ -231,7 +231,7 @@ abstract class WidgetBaseTest extends \EGroupware\Api\LoggedInTest { // Check validation errors foreach($validation_errors as $widget_id => $errored) { - $this->assertTrue(array_key_exists($widget_id, $validation_errors), "Widget $widget_id did not cause a validation error"); + $this->assertTrue(array_key_exists($widget_id, $errors), "Widget $widget_id did not cause a validation error"); } $ref->setValue(array()); }