* @dataProvider dataGetText
*/
function testGetText( $text, $title, $model, $format, $audience, $expectedText ) {
+ $this->hideDeprecated( 'Revision::getText' );
+
$rev = $this->newTestRevision( $text, $title, $model, $format );
$this->assertEquals( $expectedText, $rev->getText( $audience ) );
* @dataProvider dataGetText
*/
function testGetRawText( $text, $title, $model, $format, $audience, $expectedText ) {
+ $this->hideDeprecated( 'Revision::getRawText' );
+
$rev = $this->newTestRevision( $text, $title, $model, $format );
$this->assertEquals( $expectedText, $rev->getRawText( $audience ) );
}
public function testConstructWithText() {
+ $this->hideDeprecated( "Revision::getText" );
+
$rev = new Revision( array(
'text' => 'hello world.',
'content_model' => CONTENT_MODEL_JAVASCRIPT
}
public function testConstructWithContent() {
+ $this->hideDeprecated( "Revision::getText" );
+
$title = Title::newFromText( 'RevisionTest_testConstructWithContent' );
$rev = new Revision( array(