dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merge latest master.
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
RevisionTest.php
diff --git
a/tests/phpunit/includes/RevisionTest.php
b/tests/phpunit/includes/RevisionTest.php
index
5a98355
..
3778914
100644
(file)
--- a/
tests/phpunit/includes/RevisionTest.php
+++ b/
tests/phpunit/includes/RevisionTest.php
@@
-270,6
+270,8
@@
class RevisionTest extends MediaWikiTestCase {
* @dataProvider dataGetText
*/
function testGetText( $text, $title, $model, $format, $audience, $expectedText ) {
* @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 ) );
$rev = $this->newTestRevision( $text, $title, $model, $format );
$this->assertEquals( $expectedText, $rev->getText( $audience ) );
@@
-280,6
+282,8
@@
class RevisionTest extends MediaWikiTestCase {
* @dataProvider dataGetText
*/
function testGetRawText( $text, $title, $model, $format, $audience, $expectedText ) {
* @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 ) );
$rev = $this->newTestRevision( $text, $title, $model, $format );
$this->assertEquals( $expectedText, $rev->getRawText( $audience ) );
@@
-323,6
+327,8
@@
class RevisionTest extends MediaWikiTestCase {
}
public function testConstructWithText() {
}
public function testConstructWithText() {
+ $this->hideDeprecated( "Revision::getText" );
+
$rev = new Revision( array(
'text' => 'hello world.',
'content_model' => CONTENT_MODEL_JAVASCRIPT
$rev = new Revision( array(
'text' => 'hello world.',
'content_model' => CONTENT_MODEL_JAVASCRIPT
@@
-335,6
+341,8
@@
class RevisionTest extends MediaWikiTestCase {
}
public function testConstructWithContent() {
}
public function testConstructWithContent() {
+ $this->hideDeprecated( "Revision::getText" );
+
$title = Title::newFromText( 'RevisionTest_testConstructWithContent' );
$rev = new Revision( array(
$title = Title::newFromText( 'RevisionTest_testConstructWithContent' );
$rev = new Revision( array(