From: gggeek Date: Thu, 9 Feb 2023 10:13:14 +0000 (+0000) Subject: test fixes X-Git-Tag: 4.10.0~9 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=3e447bc1e30107897e1cdb24c7f5a4ac1a72588e;p=plcapi.git test fixes --- diff --git a/tests/WebTestCase.php b/tests/WebTestCase.php index 4a0b19e8..b28b7db7 100644 --- a/tests/WebTestCase.php +++ b/tests/WebTestCase.php @@ -29,11 +29,13 @@ abstract class PhpXmlRpc_WebTestCase extends PhpXmlRpc_ServerAwareTestCase CURLOPT_POSTFIELDS => $payload )); } - curl_setopt($ch, CURLOPT_COOKIE, 'PHPUNIT_RANDOM_TEST_ID=' . static::$randId); + $cookie = 'PHPUNIT_RANDOM_TEST_ID=' . static::$randId; if ($this->collectCodeCoverageInformation) { - curl_setopt($ch, CURLOPT_COOKIE, 'PHPUNIT_SELENIUM_TEST_ID='.$this->testId); + $cookie .= '; PHPUNIT_SELENIUM_TEST_ID=' . $this->testId; } + curl_setopt($ch, CURLOPT_COOKIE, $cookie); + if ($this->args['DEBUG'] > 0) { curl_setopt($ch, CURLOPT_VERBOSE, 1); }