From 9ac7cc130041e0b98c40749d66223ae5aa5a4367 Mon Sep 17 00:00:00 2001 From: Reedy Date: Sat, 26 Sep 2015 18:54:50 +0100 Subject: [PATCH] Swap leading spaces to tabs in backup phpunit tests Change-Id: I821e71ab5c459d11b942f09853dbf4560fbe4d19 --- .../maintenance/backupPrefetchTest.php | 164 ++++++------- .../maintenance/backupTextPassTest.php | 216 +++++++++--------- 2 files changed, 190 insertions(+), 190 deletions(-) diff --git a/tests/phpunit/maintenance/backupPrefetchTest.php b/tests/phpunit/maintenance/backupPrefetchTest.php index 5e0fe89d54..30d04d903b 100644 --- a/tests/phpunit/maintenance/backupPrefetchTest.php +++ b/tests/phpunit/maintenance/backupPrefetchTest.php @@ -154,30 +154,30 @@ class BaseDumpTest extends MediaWikiTestCase { // @codingStandardsIgnoreStart Ignore Generic.Files.LineLength.TooLong $header = ' - wikisvn - http://localhost/wiki-svn/index.php/Main_Page - MediaWiki 1.21alpha - first-letter - - Media - Special - - Talk - User - User talk - Wikisvn - Wikisvn talk - File - File talk - MediaWiki - MediaWiki talk - Template - Template talk - Help - Help talk - Category - Category talk - + wikisvn + http://localhost/wiki-svn/index.php/Main_Page + MediaWiki 1.21alpha + first-letter + + Media + Special + + Talk + User + User talk + Wikisvn + Wikisvn talk + File + File talk + MediaWiki + MediaWiki talk + Template + Template talk + Help + Help talk + Category + Category talk + '; // @codingStandardsIgnoreEnd @@ -187,72 +187,72 @@ class BaseDumpTest extends MediaWikiTestCase { // Simple plain page $available_pages[1] = ' - BackupDumperTestP1 - 0 - 1 - - 1 - 2012-04-01T16:46:05Z - - 127.0.0.1 - - BackupDumperTestP1Summary1 - 0bolhl6ol7i6x0e7yq91gxgaan39j87 - BackupDumperTestP1Text1 - 1 - 1 - + BackupDumperTestP1 + 0 + 1 + + 1 + 2012-04-01T16:46:05Z + + 127.0.0.1 + + BackupDumperTestP1Summary1 + 0bolhl6ol7i6x0e7yq91gxgaan39j87 + BackupDumperTestP1Text1 + 1 + 1 + '; // Page with more than one revisions. Hole in rev ids. $available_pages[2] = ' - BackupDumperTestP2 - 0 - 2 - - 2 - 2012-04-01T16:46:05Z - - 127.0.0.1 - - BackupDumperTestP2Summary1 - jprywrymfhysqllua29tj3sc7z39dl2 - BackupDumperTestP2Text1 - 1 - 1 - - - 5 - 2 - 2012-04-01T16:46:05Z - - 127.0.0.1 - - BackupDumperTestP2Summary4 extra - 6o1ciaxa6pybnqprmungwofc4lv00wv - BackupDumperTestP2Text4 some additional Text - 1 - 1 - + BackupDumperTestP2 + 0 + 2 + + 2 + 2012-04-01T16:46:05Z + + 127.0.0.1 + + BackupDumperTestP2Summary1 + jprywrymfhysqllua29tj3sc7z39dl2 + BackupDumperTestP2Text1 + 1 + 1 + + + 5 + 2 + 2012-04-01T16:46:05Z + + 127.0.0.1 + + BackupDumperTestP2Summary4 extra + 6o1ciaxa6pybnqprmungwofc4lv00wv + BackupDumperTestP2Text4 some additional Text + 1 + 1 + '; // Page with id higher than previous id + 1 $available_pages[4] = ' - Talk:BackupDumperTestP1 - 1 - 4 - - 8 - 2012-04-01T16:46:05Z - - 127.0.0.1 - - Talk BackupDumperTestP1 Summary1 - nktofwzd0tl192k3zfepmlzxoax1lpe - 1 - 1 - Talk about BackupDumperTestP1 Text1 - + Talk:BackupDumperTestP1 + 1 + 4 + + 8 + 2012-04-01T16:46:05Z + + 127.0.0.1 + + Talk BackupDumperTestP1 Summary1 + nktofwzd0tl192k3zfepmlzxoax1lpe + 1 + 1 + Talk about BackupDumperTestP1 Text1 + '; diff --git a/tests/phpunit/maintenance/backupTextPassTest.php b/tests/phpunit/maintenance/backupTextPassTest.php index c216864ec4..95ba77ce10 100644 --- a/tests/phpunit/maintenance/backupTextPassTest.php +++ b/tests/phpunit/maintenance/backupTextPassTest.php @@ -469,30 +469,30 @@ class TextPassDumperDatabaseTest extends DumpTestCase { . 'xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.10/ ' . 'http://www.mediawiki.org/xml/export-0.10.xsd" version="0.10" xml:lang="en"> - wikisvn - http://localhost/wiki-svn/index.php/Main_Page - MediaWiki 1.21alpha - first-letter - - Media - Special - - Talk - User - User talk - Wikisvn - Wikisvn talk - File - File talk - MediaWiki - MediaWiki talk - Template - Template talk - Help - Help talk - Category - Category talk - + wikisvn + http://localhost/wiki-svn/index.php/Main_Page + MediaWiki 1.21alpha + first-letter + + Media + Special + + Talk + User + User talk + Wikisvn + Wikisvn talk + File + File talk + MediaWiki + MediaWiki talk + Template + Template talk + Help + Help talk + Category + Category talk + '; $tail = ' @@ -503,98 +503,98 @@ class TextPassDumperDatabaseTest extends DumpTestCase { for ( $i = 0; $i < $iterations; $i++ ) { $page1 = ' - BackupDumperTestP1 - 0 - ' . ( $this->pageId1 + $i * self::$numOfPages ) . ' - - ' . ( $this->revId1_1 + $i * self::$numOfRevs ) . ' - 2012-04-01T16:46:05Z - - 127.0.0.1 - - BackupDumperTestP1Summary1 - wikitext - text/x-wiki - - 0bolhl6ol7i6x0e7yq91gxgaan39j87 - + BackupDumperTestP1 + 0 + ' . ( $this->pageId1 + $i * self::$numOfPages ) . ' + + ' . ( $this->revId1_1 + $i * self::$numOfRevs ) . ' + 2012-04-01T16:46:05Z + + 127.0.0.1 + + BackupDumperTestP1Summary1 + wikitext + text/x-wiki + + 0bolhl6ol7i6x0e7yq91gxgaan39j87 + '; $page2 = ' - BackupDumperTestP2 - 0 - ' . ( $this->pageId2 + $i * self::$numOfPages ) . ' - - ' . ( $this->revId2_1 + $i * self::$numOfRevs ) . ' - 2012-04-01T16:46:05Z - - 127.0.0.1 - - BackupDumperTestP2Summary1 - wikitext - text/x-wiki - - jprywrymfhysqllua29tj3sc7z39dl2 - - - ' . ( $this->revId2_2 + $i * self::$numOfRevs ) . ' - ' . ( $this->revId2_1 + $i * self::$numOfRevs ) . ' - 2012-04-01T16:46:05Z - - 127.0.0.1 - - BackupDumperTestP2Summary2 - wikitext - text/x-wiki - - b7vj5ks32po5m1z1t1br4o7scdwwy95 - - - ' . ( $this->revId2_3 + $i * self::$numOfRevs ) . ' - ' . ( $this->revId2_2 + $i * self::$numOfRevs ) . ' - 2012-04-01T16:46:05Z - - 127.0.0.1 - - BackupDumperTestP2Summary3 - wikitext - text/x-wiki - - jfunqmh1ssfb8rs43r19w98k28gg56r - - - ' . ( $this->revId2_4 + $i * self::$numOfRevs ) . ' - ' . ( $this->revId2_3 + $i * self::$numOfRevs ) . ' - 2012-04-01T16:46:05Z - - 127.0.0.1 - - BackupDumperTestP2Summary4 extra - wikitext - text/x-wiki - - 6o1ciaxa6pybnqprmungwofc4lv00wv - + BackupDumperTestP2 + 0 + ' . ( $this->pageId2 + $i * self::$numOfPages ) . ' + + ' . ( $this->revId2_1 + $i * self::$numOfRevs ) . ' + 2012-04-01T16:46:05Z + + 127.0.0.1 + + BackupDumperTestP2Summary1 + wikitext + text/x-wiki + + jprywrymfhysqllua29tj3sc7z39dl2 + + + ' . ( $this->revId2_2 + $i * self::$numOfRevs ) . ' + ' . ( $this->revId2_1 + $i * self::$numOfRevs ) . ' + 2012-04-01T16:46:05Z + + 127.0.0.1 + + BackupDumperTestP2Summary2 + wikitext + text/x-wiki + + b7vj5ks32po5m1z1t1br4o7scdwwy95 + + + ' . ( $this->revId2_3 + $i * self::$numOfRevs ) . ' + ' . ( $this->revId2_2 + $i * self::$numOfRevs ) . ' + 2012-04-01T16:46:05Z + + 127.0.0.1 + + BackupDumperTestP2Summary3 + wikitext + text/x-wiki + + jfunqmh1ssfb8rs43r19w98k28gg56r + + + ' . ( $this->revId2_4 + $i * self::$numOfRevs ) . ' + ' . ( $this->revId2_3 + $i * self::$numOfRevs ) . ' + 2012-04-01T16:46:05Z + + 127.0.0.1 + + BackupDumperTestP2Summary4 extra + wikitext + text/x-wiki + + 6o1ciaxa6pybnqprmungwofc4lv00wv + '; // page 3 not in stub $page4 = ' - Talk:BackupDumperTestP1 - 1 - ' . ( $this->pageId4 + $i * self::$numOfPages ) . ' - - ' . ( $this->revId4_1 + $i * self::$numOfRevs ) . ' - 2012-04-01T16:46:05Z - - 127.0.0.1 - - Talk BackupDumperTestP1 Summary1 - BackupTextPassTestModel - text/plain - - nktofwzd0tl192k3zfepmlzxoax1lpe - + Talk:BackupDumperTestP1 + 1 + ' . ( $this->pageId4 + $i * self::$numOfPages ) . ' + + ' . ( $this->revId4_1 + $i * self::$numOfRevs ) . ' + 2012-04-01T16:46:05Z + + 127.0.0.1 + + Talk BackupDumperTestP1 Summary1 + BackupTextPassTestModel + text/plain + + nktofwzd0tl192k3zfepmlzxoax1lpe + '; $content .= $page1 . $page2 . $page4; -- 2.20.1