X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fcontent%2FWikitextContentTest.php;h=fc1c42d779bcbd88f6ac551df1264786ca9356a3;hb=0c4efc4dd942fe38cdbac6977a28f45314a9839e;hp=cd7cc1010dc5100a545773374b098639b6dd8701;hpb=4905504faded8f85a9b3d68b27da5c9e2f11bd06;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/content/WikitextContentTest.php b/tests/phpunit/includes/content/WikitextContentTest.php index cd7cc1010d..fc1c42d779 100644 --- a/tests/phpunit/includes/content/WikitextContentTest.php +++ b/tests/phpunit/includes/content/WikitextContentTest.php @@ -390,7 +390,7 @@ just a test" $this->assertEquals( 'hello world.', $wikitext, 'Wikitext passed to hook was not as expected' ); - $this->assertEquals( null, $redirectTarget, 'Redirect seen in hook was not null' ); + $this->assertNull( $redirectTarget, 'Redirect seen in hook was not null' ); $this->assertEquals( $title, $options->getRedirectTarget(), 'ParserOptions\' redirectTarget was changed' ); @@ -417,8 +417,7 @@ just a test" $redirectTarget->getFullText(), 'Redirect seen in hook was not the expected title' ); - $this->assertEquals( - null, + $this->assertNull( $options->getRedirectTarget(), 'ParserOptions\' redirectTarget was changed' );