Fixed dumpBlocks fcn
authorfreakolowsky <freak@drajv.si>
Wed, 17 Apr 2013 12:18:17 +0000 (14:18 +0200)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 25 Apr 2013 18:34:54 +0000 (18:34 +0000)
Change-Id: I5db9105a38ffd968cf6a6bac0d723db40ec1f518

tests/phpunit/includes/BlockTest.php

index 02546fa..b0448c0 100644 (file)
@@ -59,7 +59,7 @@ class BlockTest extends MediaWikiLangTestCase {
         * debug function : dump the ipblocks table
         */
        function dumpBlocks() {
-               $v = $this->db->query( 'SELECT * FROM unittest_ipblocks' );
+                $v = $this->db->select( 'ipblocks', '*' );
                print "Got " . $v->numRows() . " rows. Full dump follow:\n";
                foreach ( $v as $row ) {
                        print_r( $row );