X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FWebTest%2FContact%2FInlineFieldsEditTest.php;h=37a7693145dc38d0f8b87dba1ef3e60e61d4da61;hb=22e263ad985b62de5cf7bdaf09555bfb3f0cd322;hp=4ff94545c895fec8bf071640a74bb90af216f018;hpb=0db6c3e15a8324d7f2d73c43c9b219a829351157;p=civicrm-core.git diff --git a/tests/phpunit/WebTest/Contact/InlineFieldsEditTest.php b/tests/phpunit/WebTest/Contact/InlineFieldsEditTest.php index 4ff94545c8..37a7693145 100644 --- a/tests/phpunit/WebTest/Contact/InlineFieldsEditTest.php +++ b/tests/phpunit/WebTest/Contact/InlineFieldsEditTest.php @@ -257,7 +257,7 @@ class WebTest_Contact_InlineFieldsEditTest extends CiviSeleniumTestCase { private function inlineEdit($block, $params, $valid = 're_open') { $this->openInlineForm($block); foreach ($params as $item => $val) { - switch(gettype($val)) { + switch (gettype($val)) { case 'boolean': $this->click($item); break; @@ -309,7 +309,7 @@ class WebTest_Contact_InlineFieldsEditTest extends CiviSeleniumTestCase { if ($validate && $valid !== 'no_open') { $this->openInlineForm($block); foreach ($params as $item => $val) { - switch(gettype($val)) { + switch (gettype($val)) { case 'string': if ($val && substr($val, 0, 5) == 'date:') { $val = date('m/d/Y', strtotime(trim(substr($val, 5)))); @@ -340,7 +340,7 @@ class WebTest_Contact_InlineFieldsEditTest extends CiviSeleniumTestCase { } // Verify there was a form error else { - switch($valid) { + switch ($valid) { case 'errorJs': $this->waitForElementPresent('css=label.error'); break;