Last modified: 2014-07-28 09:53:22 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T70650, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68650 - phpunit failure: Unexpected 'wikiId' => 'wiki-unittest_'
phpunit failure: Unexpected 'wikiId' => 'wiki-unittest_'
Status: RESOLVED DUPLICATE of bug 68231
Product: MediaWiki
Classification: Unclassified
Unit tests (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-27 00:28 UTC by Nemo
Modified: 2014-07-28 09:53 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Nemo 2014-07-27 00:28:41 UTC
Very silly one:

121) ProofreadPage\FileProviderTest::testGetForIndexPage with data set #0 (ProofreadIndexPage, UnregisteredLocalFile)
Failed asserting that two objects are equal.
--- Expected
+++ Actual
@@ @@
             'name' => 'localtesting'
-            'wikiId' => 'wiki'
+            'wikiId' => 'wiki-unittest_'

@@ @@
                 'locksHeld' => Array ()
-                'domain' => 'wiki'
+                'domain' => 'wiki-unittest_'
                 'lockTTL' => 7200
             )
             'fileJournal' => NullFileJournal Object (...)
         )
         'zones' => Array (...)
         'thumbScriptUrl' => null
         'transformVia404' => false
         'descBaseUrl' => null
         'scriptDirUrl' => null
         'scriptExtension' => null
         'articleUrl' => null
         'initialCapital' => false
         'pathDisclosureProtection' => 'simple'
         'url' => 'http://localhost/thumbtest'
         'thumbUrl' => 'http://localhost/thumbtest/thumb'
         'hashLevels' => 2
         'deletedHashLevels' => 2
         'abbrvThreshold' => 255
         'favicon' => null
         'fileFactory' => Array (...)
         'oldFileFactory' => false
         'fileFactoryKey' => false
         'oldFileFactoryKey' => false
         'name' => 'temp'
         'isPrivate' => false
     )
     'lastError' => null
     'redirected' => null
     'redirectedTitle' => null
     'fsFile' => null
     'url' => null
     'extension' => null
     'name' => 'LoremIpsum.djvu'
     'hashPath' => null
     'pageCount' => null
     'transformScript' => null
     'redirectTitle' => null
     'canRender' => null
     'isSafeFile' => null
     'repoClass' => 'FileRepo'
     'tmpBucketedThumbCache' => Array ()
 )

/srv/vagrant/mediawiki/extensions/ProofreadPage/tests/includes/FileProviderTest.php:42
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

122) ProofreadPage\FileProviderTest::testGetForPagePage with data set #0 (ProofreadPagePage, UnregisteredLocalFile)
Failed asserting that two objects are equal.
--- Expected
+++ Actual
@@ @@
             'name' => 'localtesting'
-            'wikiId' => 'wiki'
+            'wikiId' => 'wiki-unittest_'

@@ @@
                 'locksHeld' => Array ()
-                'domain' => 'wiki'
+                'domain' => 'wiki-unittest_'
                 'lockTTL' => 7200
             )
             'fileJournal' => NullFileJournal Object (...)
         )
         'zones' => Array (...)
         'thumbScriptUrl' => null
         'transformVia404' => false
         'descBaseUrl' => null
         'scriptDirUrl' => null
         'scriptExtension' => null
         'articleUrl' => null
         'initialCapital' => false
         'pathDisclosureProtection' => 'simple'
         'url' => 'http://localhost/thumbtest'
         'thumbUrl' => 'http://localhost/thumbtest/thumb'
         'hashLevels' => 2
         'deletedHashLevels' => 2
         'abbrvThreshold' => 255
         'favicon' => null
         'fileFactory' => Array (...)
         'oldFileFactory' => false
         'fileFactoryKey' => false
         'oldFileFactoryKey' => false
         'name' => 'temp'
         'isPrivate' => false
     )
     'lastError' => null
     'redirected' => null
     'redirectedTitle' => null
     'fsFile' => null
     'url' => null
     'extension' => null
     'name' => 'LoremIpsum.djvu'
     'hashPath' => null
     'pageCount' => null
     'transformScript' => null
     'redirectTitle' => null
     'canRender' => null
     'isSafeFile' => null
     'repoClass' => 'FileRepo'
     'tmpBucketedThumbCache' => Array ()
 )

/srv/vagrant/mediawiki/extensions/ProofreadPage/tests/includes/FileProviderTest.php:80
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

123) ProofreadPage\FileProviderTest::testGetForPagePage with data set #1 (ProofreadPagePage, UnregisteredLocalFile)
Failed asserting that two objects are equal.
--- Expected
+++ Actual
@@ @@
             'name' => 'localtesting'
-            'wikiId' => 'wiki'
+            'wikiId' => 'wiki-unittest_'

@@ @@
                 'locksHeld' => Array ()
-                'domain' => 'wiki'
+                'domain' => 'wiki-unittest_'
                 'lockTTL' => 7200
             )
             'fileJournal' => NullFileJournal Object (...)
         )
         'zones' => Array (...)
         'thumbScriptUrl' => null
         'transformVia404' => false
         'descBaseUrl' => null
         'scriptDirUrl' => null
         'scriptExtension' => null
         'articleUrl' => null
         'initialCapital' => false
         'pathDisclosureProtection' => 'simple'
         'url' => 'http://localhost/thumbtest'
         'thumbUrl' => 'http://localhost/thumbtest/thumb'
         'hashLevels' => 2
         'deletedHashLevels' => 2
         'abbrvThreshold' => 255
         'favicon' => null
         'fileFactory' => Array (...)
         'oldFileFactory' => false
         'fileFactoryKey' => false
         'oldFileFactoryKey' => false
         'name' => 'temp'
         'isPrivate' => false
     )
     'lastError' => null
     'redirected' => null
     'redirectedTitle' => null
     'fsFile' => null
     'url' => null
     'extension' => null
     'name' => 'LoremIpsum.djvu'
     'hashPath' => null
     'pageCount' => null
     'transformScript' => null
     'redirectTitle' => null
     'canRender' => null
     'isSafeFile' => null
     'repoClass' => 'FileRepo'
     'tmpBucketedThumbCache' => Array ()
 )

/srv/vagrant/mediawiki/extensions/ProofreadPage/tests/includes/FileProviderTest.php:80
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

124) ProofreadPage\FileProviderTest::testGetForPagePage with data set #2 (ProofreadPagePage, UnregisteredLocalFile)
Failed asserting that two objects are equal.
--- Expected
+++ Actual
@@ @@
             'name' => 'localtesting'
-            'wikiId' => 'wiki'
+            'wikiId' => 'wiki-unittest_'

@@ @@
                 'locksHeld' => Array ()
-                'domain' => 'wiki'
+                'domain' => 'wiki-unittest_'
                 'lockTTL' => 7200
             )
             'fileJournal' => NullFileJournal Object (...)
         )
         'zones' => Array (...)
         'thumbScriptUrl' => null
         'transformVia404' => false
         'descBaseUrl' => null
         'scriptDirUrl' => null
         'scriptExtension' => null
         'articleUrl' => null
         'initialCapital' => false
         'pathDisclosureProtection' => 'simple'
         'url' => 'http://localhost/thumbtest'
         'thumbUrl' => 'http://localhost/thumbtest/thumb'
         'hashLevels' => 2
         'deletedHashLevels' => 2
         'abbrvThreshold' => 255
         'favicon' => null
         'fileFactory' => Array (...)
         'oldFileFactory' => false
         'fileFactoryKey' => false
         'oldFileFactoryKey' => false
         'name' => 'temp'
         'isPrivate' => false
     )
     'lastError' => null
     'redirected' => null
     'redirectedTitle' => null
     'fsFile' => null
     'url' => null
     'extension' => null
     'name' => 'LoremIpsum.djvu'
     'hashPath' => null
     'pageCount' => null
     'transformScript' => null
     'redirectTitle' => null
     'canRender' => null
     'isSafeFile' => null
     'repoClass' => 'FileRepo'
     'tmpBucketedThumbCache' => Array ()
 )

/srv/vagrant/mediawiki/extensions/ProofreadPage/tests/includes/FileProviderTest.php:80
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

125) ProofreadPage\FileProviderTest::testGetForPagePage with data set #3 (ProofreadPagePage, UnregisteredLocalFile)
Failed asserting that two objects are equal.
--- Expected
+++ Actual
@@ @@
             'name' => 'localtesting'
-            'wikiId' => 'wiki'
+            'wikiId' => 'wiki-unittest_'

@@ @@
                 'locksHeld' => Array ()
-                'domain' => 'wiki'
+                'domain' => 'wiki-unittest_'
                 'lockTTL' => 7200
             )
             'fileJournal' => NullFileJournal Object (...)
         )
         'zones' => Array (...)
         'thumbScriptUrl' => null
         'transformVia404' => false
         'descBaseUrl' => null
         'scriptDirUrl' => null
         'scriptExtension' => null
         'articleUrl' => null
         'initialCapital' => false
         'pathDisclosureProtection' => 'simple'
         'url' => 'http://localhost/thumbtest'
         'thumbUrl' => 'http://localhost/thumbtest/thumb'
         'hashLevels' => 2
         'deletedHashLevels' => 2
         'abbrvThreshold' => 255
         'favicon' => null
         'fileFactory' => Array (...)
         'oldFileFactory' => false
         'fileFactoryKey' => false
         'oldFileFactoryKey' => false
         'name' => 'temp'
         'isPrivate' => false
     )
     'lastError' => null
     'redirected' => null
     'redirectedTitle' => null
     'fsFile' => null
     'url' => null
     'extension' => null
     'name' => 'Test.jpg'
     'hashPath' => null
     'pageCount' => null
     'transformScript' => null
     'redirectTitle' => null
     'canRender' => null
     'isSafeFile' => null
     'repoClass' => 'FileRepo'
     'tmpBucketedThumbCache' => Array ()
 )

/srv/vagrant/mediawiki/extensions/ProofreadPage/tests/includes/FileProviderTest.php:80
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160
Comment 1 Antoine "hashar" Musso (WMF) 2014-07-28 09:53:22 UTC
Not blocking Bug 67216 - Have unit tests of all wmf deployed extensions pass when installed together.

Bryan logged it as bug 68231 -  wfWikiID() returns different values from test and data provider

*** This bug has been marked as a duplicate of bug 68231 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links