Fixed a long-standing broken test:
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 30 Jun 2011 20:11:45 +0000 (20:11 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 30 Jun 2011 20:11:45 +0000 (20:11 +0000)
1) ApiUploadTest::testUploadStash
Failed asserting that <boolean:true> 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.

tests/phpunit/includes/api/ApiUploadTest.php

index a51e29d..8ce6258 100644 (file)
@@ -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;