Last modified: 2014-10-19 17:46:47 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 T74216, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72216 - ApiQueryBasicTest::testProps failure
ApiQueryBasicTest::testProps failure
Status: NEW
Product: MediaWiki
Classification: Unclassified
Unit tests (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-18 13:53 UTC by Aude
Modified: 2014-10-19 17:46 UTC (History)
3 users (show)

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


Attachments

Description Aude 2014-10-18 13:53:26 UTC
i have non-wikitext content in the main namespace....

15) ApiQueryBasicTest::testProps
Failed asserting that two arrays are equal.
Request: prop=links&titles=AQBT-All&action=query
--- Expected
+++ Actual
@@ @@
                         (
-                            [links] => Array
-                                (
-                                    [0] => Array
-                                        (
-                                            [ns] => 0
-                                            [title] => AQBT-Links
-                                        )
-
-                                )
-
+                            [missing] => 
                             [ns] => 0
                             [title] => AQBT-All
                         )
 
                 )
 
         )
 
 )

/Library/WebServer/Documents/php-master/tests/phpunit/includes/api/query/ApiQueryTestBase.php:116
/Library/WebServer/Documents/php-master/tests/phpunit/includes/api/query/ApiQueryTestBase.php:104
/Library/WebServer/Documents/php-master/tests/phpunit/includes/api/query/ApiQueryBasicTest.php:228
/Library/WebServer/Documents/php-master/tests/phpunit/MediaWikiTestCase.php:146
Comment 1 Aude 2014-10-18 13:53:56 UTC
also ....


16) ApiQueryBasicTest::testLists
Failed asserting that two arrays are equal.
Request: list=allpages&apprefix=AQBT-&action=query
--- Expected
+++ Actual
@@ @@
                 (
-                    [0] => Array
-                        (
-                            [ns] => 0
-                            [title] => AQBT-All
-                        )
-
-                    [1] => Array
-                        (
-                            [ns] => 0
-                            [title] => AQBT-Categories
-                        )
-
-                    [2] => Array
-                        (
-                            [ns] => 0
-                            [title] => AQBT-Links
-                        )
-
-                    [3] => Array
-                        (
-                            [ns] => 0
-                            [title] => AQBT-Templates
-                        )
-
                 )
 
         )
 
 )

/Library/WebServer/Documents/php-master/tests/phpunit/includes/api/query/ApiQueryTestBase.php:116
/Library/WebServer/Documents/php-master/tests/phpunit/includes/api/query/ApiQueryTestBase.php:104
/Library/WebServer/Documents/php-master/tests/phpunit/includes/api/query/ApiQueryBasicTest.php:237
/Library/WebServer/Documents/php-master/tests/phpunit/MediaWikiTestCase.php:146

17) ApiQueryBasicTest::testAllTogether
Failed asserting that two arrays are equal.
Request: prop=links%7Ctemplates%7Ccategories&titles=AQBT-All&action=query
--- Expected
+++ Actual
@@ @@
                         (
-                            [categories] => Array
-                                (
-                                    [0] => Array
-                                        (
-                                            [ns] => 14
-                                            [title] => Category:AQBT-Cat
-                                        )
-
-                                )
-
-                            [links] => Array
-                                (
-                                    [0] => Array
-                                        (
-                                            [ns] => 0
-                                            [title] => AQBT-Links
-                                        )
-
-                                )
-
+                            [missing] => 
                             [ns] => 0
-                            [templates] => Array
-                                (
-                                    [0] => Array
-                                        (
-                                            [ns] => 10
-                                            [title] => Template:AQBT-T
-                                        )
-
-                                )
-
                             [title] => AQBT-All
                         )
 
                 )
 
         )
 
 )

/Library/WebServer/Documents/php-master/tests/phpunit/includes/api/query/ApiQueryTestBase.php:116
/Library/WebServer/Documents/php-master/tests/phpunit/includes/api/query/ApiQueryTestBase.php:104
/Library/WebServer/Documents/php-master/tests/phpunit/includes/api/query/ApiQueryBasicTest.php:258
/Library/WebServer/Documents/php-master/tests/phpunit/MediaWikiTestCase.php:146

18) ApiQueryBasicTest::testGenerator
Failed asserting that two arrays are equal.
Request: generator=allpages&gapprefix=AQBT-&action=query
--- Expected
+++ Actual
@@ @@
 Array
 (
-    [query] => Array
-        (
-            [pages] => Array
-                (
-                    [0] => Array
-                        (
-                            [ns] => 0
-                            [title] => AQBT-All
-                        )
-
-                    [1] => Array
-                        (
-                            [ns] => 0
-                            [title] => AQBT-Categories
-                        )
-
-                    [2] => Array
-                        (
-                            [ns] => 0
-                            [title] => AQBT-Links
-                        )
-
-                    [3] => Array
-                        (
-                            [ns] => 0
-                            [title] => AQBT-Templates
-                        )
-
-                )
-
-        )
-
 )

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


Navigation
Links