X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FRevisionStorageTest.php;h=642ada20f2d9314d304c72cbea441efd7abd9ded;hb=0958f53373671e212f01bf3987e405c6121a2d70;hp=440495b216dda9b23a3bd5127f95b0b68c235dec;hpb=c23c545ac7d5e68158bce3d3d7362a3e62cb2193;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/RevisionStorageTest.php b/tests/phpunit/includes/RevisionStorageTest.php index 440495b216..642ada20f2 100644 --- a/tests/phpunit/includes/RevisionStorageTest.php +++ b/tests/phpunit/includes/RevisionStorageTest.php @@ -95,7 +95,7 @@ class RevisionStorageTest extends MediaWikiTestCase { $rev = new Revision( $props ); - $dbw = wfgetDB( DB_MASTER ); + $dbw = wfGetDB( DB_MASTER ); $rev->insertOn( $dbw ); return $rev; @@ -145,7 +145,7 @@ class RevisionStorageTest extends MediaWikiTestCase { public function testConstructFromRow() { $orig = $this->makeRevision(); - $dbr = wfgetDB( DB_SLAVE ); + $dbr = wfGetDB( DB_SLAVE ); $res = $dbr->select( 'revision', '*', [ 'rev_id' => $orig->getId() ] ); $this->assertTrue( is_object( $res ), 'query failed' ); @@ -163,7 +163,7 @@ class RevisionStorageTest extends MediaWikiTestCase { public function testNewFromRow() { $orig = $this->makeRevision(); - $dbr = wfgetDB( DB_SLAVE ); + $dbr = wfGetDB( DB_SLAVE ); $res = $dbr->select( 'revision', '*', [ 'rev_id' => $orig->getId() ] ); $this->assertTrue( is_object( $res ), 'query failed' ); @@ -187,7 +187,7 @@ class RevisionStorageTest extends MediaWikiTestCase { $orig = $page->getRevision(); $page->doDeleteArticle( 'test Revision::newFromArchiveRow' ); - $dbr = wfgetDB( DB_SLAVE ); + $dbr = wfGetDB( DB_SLAVE ); $res = $dbr->select( 'archive', '*', [ 'ar_rev_id' => $orig->getId() ] ); $this->assertTrue( is_object( $res ), 'query failed' ); @@ -274,18 +274,6 @@ class RevisionStorageTest extends MediaWikiTestCase { $this->assertEquals( $page->getId(), $rev->getPage() ); } - /** - * @covers Revision::getText - */ - public function testGetText() { - $this->hideDeprecated( 'Revision::getText' ); - - $orig = $this->makeRevision( [ 'text' => 'hello hello.' ] ); - $rev = Revision::newFromId( $orig->getId() ); - - $this->assertEquals( 'hello hello.', $rev->getText() ); - } - /** * @covers Revision::getContent */ @@ -314,18 +302,6 @@ class RevisionStorageTest extends MediaWikiTestCase { $this->assertEquals( 'hello hello.', $rev->getContent()->getNativeData() ); } - /** - * @covers Revision::getRawText - */ - public function testGetRawText() { - $this->hideDeprecated( 'Revision::getRawText' ); - - $orig = $this->makeRevision( [ 'text' => 'hello hello raw.' ] ); - $rev = Revision::newFromId( $orig->getId() ); - - $this->assertEquals( 'hello hello raw.', $rev->getRawText() ); - } - /** * @covers Revision::getContentModel */