From: Chad Horohoe Date: Thu, 30 Jun 2011 20:11:45 +0000 (+0000) Subject: Fixed a long-standing broken test: X-Git-Tag: 1.31.0-rc.0~29143 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=25bf6f5b43f69481b66bfffca26613a3bd6c41a2;p=lhc%2Fweb%2Fwiklou.git Fixed a long-standing broken test: 1) ApiUploadTest::testUploadStash Failed asserting that is false. Did this by copying the correct stuff from $_SESSION to our local $session we're using for the test. Not sure if this is strictly correct, but hey it passes ;-) Currently at: Tests: 1622, Assertions: 32090, Incomplete: 8, Skipped: 5. --- diff --git a/tests/phpunit/includes/api/ApiUploadTest.php b/tests/phpunit/includes/api/ApiUploadTest.php index a51e29df39..8ce625813e 100644 --- a/tests/phpunit/includes/api/ApiUploadTest.php +++ b/tests/phpunit/includes/api/ApiUploadTest.php @@ -414,6 +414,7 @@ class ApiUploadTest extends ApiTestCaseUpload { 'comment' => 'dummy comment', 'text' => "This is the page text for $fileName, altered", ); + $session[ UploadBase::getSessionKeyname() ] = $_SESSION[ UploadBase::getSessionKeyname() ]; $this->clearFakeUploads(); $exception = false;