Merge "optimize ../images/spinner.gif, ajax-loader.gif"
[lhc/web/wiklou.git] / tests / phpunit / includes / RevisionStorageTest.php
index e1ecaec..6d82d0c 100644 (file)
@@ -6,10 +6,31 @@
  * @group Database
  * ^--- important, causes temporary tables to be used instead of the real database
  */
-class RevisionStorageTest extends PHPUnit_Framework_TestCase {
+class RevisionStorageTest extends MediaWikiTestCase {
 
        var $the_page;
 
+       function  __construct( $name = null, array $data = array(), $dataName = '' ) {
+               parent::__construct( $name, $data, $dataName );
+
+               $this->tablesUsed = array_merge( $this->tablesUsed,
+                                                array( 'page',
+                                                     'revision',
+                                                     'text',
+
+                                                     'recentchanges',
+                                                     'logging',
+
+                                                     'page_props',
+                                                     'pagelinks',
+                                                     'categorylinks',
+                                                     'langlinks',
+                                                     'externallinks',
+                                                     'imagelinks',
+                                                     'templatelinks',
+                                                     'iwlinks' ) );
+       }
+
        public function setUp() {
                if ( !$this->the_page ) {
                        $this->the_page = $this->createPage( 'RevisionStorageTest_the_page', "just a dummy page" );
@@ -192,6 +213,7 @@ class RevisionStorageTest extends PHPUnit_Framework_TestCase {
         */
        public function testRevText()
        {
+               $this->hideDeprecated( 'Revision::revText' );
                $orig = $this->makeRevision( array( 'text' => 'hello hello rev.' ) );
                $rev = Revision::newFromId( $orig->getId() );
 
@@ -285,4 +307,3 @@ class RevisionStorageTest extends PHPUnit_Framework_TestCase {
                $this->assertEquals( 'some testing text', $rev->getText() );
        }
 }
-?>