summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MLEB/Translate/tests/phpunit/tag/pagetranslation/NowikiOnly.pttest')
-rw-r--r--MLEB/Translate/tests/phpunit/tag/pagetranslation/NowikiOnly.pttest4
1 files changed, 1 insertions, 3 deletions
diff --git a/MLEB/Translate/tests/phpunit/tag/pagetranslation/NowikiOnly.pttest b/MLEB/Translate/tests/phpunit/tag/pagetranslation/NowikiOnly.pttest
index 69d14eaa..0923d10e 100644
--- a/MLEB/Translate/tests/phpunit/tag/pagetranslation/NowikiOnly.pttest
+++ b/MLEB/Translate/tests/phpunit/tag/pagetranslation/NowikiOnly.pttest
@@ -2,6 +2,4 @@
if ( !defined( 'MEDIAWIKI' ) ) die();
-if ( $parse->countSections() !== 0 ) {
- $this->fail( "Testfile $filename failed misc tests... number of sections should be zero" );
-}
+$this->assertEmpty( $parserOutput->units(), 'number of sections should be zero' );