aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit')
-rw-r--r--tests/phpunit/data/ParserCache/1.31-ParserOutput-withMetadata.serializedbin2096 -> 2105 bytes
-rw-r--r--tests/phpunit/data/ParserCache/1.34-ParserOutput-withMetadata.serializedbin2250 -> 2259 bytes
-rw-r--r--tests/phpunit/data/ParserCache/1.35-ParserOutput-withMetadata.serializedbin2409 -> 2418 bytes
-rw-r--r--tests/phpunit/data/ParserCache/1.36-ParserOutput-withMetadata.json2
-rw-r--r--tests/phpunit/data/ParserCache/1.38-ParserOutput-withMetadata.json2
-rw-r--r--tests/phpunit/data/ParserCache/1.38-ParserOutput-withMetadata.serializedbin2786 -> 2794 bytes
-rw-r--r--tests/phpunit/includes/parser/ParserCacheSerializationTestCases.php8
7 files changed, 6 insertions, 6 deletions
diff --git a/tests/phpunit/data/ParserCache/1.31-ParserOutput-withMetadata.serialized b/tests/phpunit/data/ParserCache/1.31-ParserOutput-withMetadata.serialized
index 70f768852ceb..b898b8a43efa 100644
--- a/tests/phpunit/data/ParserCache/1.31-ParserOutput-withMetadata.serialized
+++ b/tests/phpunit/data/ParserCache/1.31-ParserOutput-withMetadata.serialized
Binary files differ
diff --git a/tests/phpunit/data/ParserCache/1.34-ParserOutput-withMetadata.serialized b/tests/phpunit/data/ParserCache/1.34-ParserOutput-withMetadata.serialized
index fb38e2a6253d..f81fc1cef020 100644
--- a/tests/phpunit/data/ParserCache/1.34-ParserOutput-withMetadata.serialized
+++ b/tests/phpunit/data/ParserCache/1.34-ParserOutput-withMetadata.serialized
Binary files differ
diff --git a/tests/phpunit/data/ParserCache/1.35-ParserOutput-withMetadata.serialized b/tests/phpunit/data/ParserCache/1.35-ParserOutput-withMetadata.serialized
index 8e010d264cb3..c75a20a15032 100644
--- a/tests/phpunit/data/ParserCache/1.35-ParserOutput-withMetadata.serialized
+++ b/tests/phpunit/data/ParserCache/1.35-ParserOutput-withMetadata.serialized
Binary files differ
diff --git a/tests/phpunit/data/ParserCache/1.36-ParserOutput-withMetadata.json b/tests/phpunit/data/ParserCache/1.36-ParserOutput-withMetadata.json
index 9a5228ab9756..897add3c2c77 100644
--- a/tests/phpunit/data/ParserCache/1.36-ParserOutput-withMetadata.json
+++ b/tests/phpunit/data/ParserCache/1.36-ParserOutput-withMetadata.json
@@ -1 +1 @@
-{"Text":"","LanguageLinks":["link1","link2"],"Categories":{"category2":1,"category1":2},"Indicators":{"indicator1":"indicator1_value"},"TitleText":"title_text1","Links":{"0":{"Link1":42},"2":{"Link2":43}},"LinksSpecial":[],"Templates":{"10":{"Template1":42}},"TemplateIds":{"10":{"Template1":4242}},"Images":{"Image1":1},"FileSearchOptions":{"Image1":{"time":"19731129213309","sha1":"test_sha1"}},"ExternalLinks":{"https://test.org":1},"InterwikiLinks":{"enwiki":{"interwiki1":1,"interwiki2":1}},"NewSection":true,"HideNewSection":true,"NoGallery":false,"HeadItems":{"tag1":"head_item1"},"Modules":["module1"],"ModuleStyles":["module_style1"],"JsConfigVars":{"key1":"value1"},"OutputHooks":[["hook1",{"boolean":true,"null":null,"number":42,"string":"string","array":[1,2,3],"map":{"key":"value"}}]],"Warnings":{"warning1":1},"Sections":["section1","section2"],"Properties":[],"TOCHTML":"tochtml1","Timestamp":"20010419042521","EnableOOUI":true,"IndexPolicy":"noindex","ExtensionData":[],"LimitReportData":{"limit_report_key1":"value1"},"LimitReportJSData":{"limit_report_key1":"value1"},"ParseStartTime":[],"PreventClickjacking":false,"ExtraScriptSrcs":[],"ExtraDefaultSrcs":[],"ExtraStyleSrcs":[],"Flags":{"test":true},"SpeculativeRevId":42,"SpeculativePageIdUsed":null,"RevisionTimestampUsed":null,"RevisionUsedSha1Base36":null,"WrapperDivClasses":[],"ParseUsedOptions":[],"CacheExpiry":null,"CacheTime":"","CacheRevisionId":null,"_type_":"ParserOutput"} \ No newline at end of file
+{"Text":"","LanguageLinks":["link1","link2"],"Categories":{"category2":"1","category1":"2"},"Indicators":{"indicator1":"indicator1_value"},"TitleText":"title_text1","Links":{"0":{"Link1":42},"2":{"Link2":43}},"LinksSpecial":[],"Templates":{"10":{"Template1":42}},"TemplateIds":{"10":{"Template1":4242}},"Images":{"Image1":1},"FileSearchOptions":{"Image1":{"time":"19731129213309","sha1":"test_sha1"}},"ExternalLinks":{"https://test.org":1},"InterwikiLinks":{"enwiki":{"interwiki1":1,"interwiki2":1}},"NewSection":true,"HideNewSection":true,"NoGallery":false,"HeadItems":{"tag1":"head_item1"},"Modules":["module1"],"ModuleStyles":["module_style1"],"JsConfigVars":{"key1":"value1"},"OutputHooks":[["hook1",{"boolean":true,"null":null,"number":42,"string":"string","array":[1,2,3],"map":{"key":"value"}}]],"Warnings":{"warning1":1},"Sections":["section1","section2"],"Properties":[],"TOCHTML":"tochtml1","Timestamp":"20010419042521","EnableOOUI":true,"IndexPolicy":"noindex","ExtensionData":[],"LimitReportData":{"limit_report_key1":"value1"},"LimitReportJSData":{"limit_report_key1":"value1"},"ParseStartTime":[],"PreventClickjacking":false,"ExtraScriptSrcs":[],"ExtraDefaultSrcs":[],"ExtraStyleSrcs":[],"Flags":{"test":true},"SpeculativeRevId":42,"SpeculativePageIdUsed":null,"RevisionTimestampUsed":null,"RevisionUsedSha1Base36":null,"WrapperDivClasses":[],"ParseUsedOptions":[],"CacheExpiry":null,"CacheTime":"","CacheRevisionId":null,"_type_":"ParserOutput"}
diff --git a/tests/phpunit/data/ParserCache/1.38-ParserOutput-withMetadata.json b/tests/phpunit/data/ParserCache/1.38-ParserOutput-withMetadata.json
index bcb79267794d..4f37054b18f0 100644
--- a/tests/phpunit/data/ParserCache/1.38-ParserOutput-withMetadata.json
+++ b/tests/phpunit/data/ParserCache/1.38-ParserOutput-withMetadata.json
@@ -1 +1 @@
-{"Text":"","LanguageLinks":["link1","link2"],"Categories":{"category2":1,"category1":2},"Indicators":{"indicator1":"indicator1_value"},"TitleText":"title_text1","Links":{"0":{"Link1":42},"2":{"Link2":43}},"LinksSpecial":[],"Templates":{"10":{"Template1":42}},"TemplateIds":{"10":{"Template1":4242}},"Images":{"Image1":1},"FileSearchOptions":{"Image1":{"time":"19731129213309","sha1":"test_sha1"}},"ExternalLinks":{"https://test.org":1},"InterwikiLinks":{"enwiki":{"interwiki1":1,"interwiki2":1}},"NewSection":true,"HideNewSection":true,"NoGallery":false,"HeadItems":{"tag1":"head_item1"},"Modules":["module1"],"ModuleStyles":["module_style1"],"JsConfigVars":{"key1":"value1"},"OutputHooks":[["hook1",{"boolean":true,"null":null,"number":42,"string":"string","array":[1,2,3],"map":{"key":"value"}}]],"Warnings":{"warning1":1},"Sections":["section1","section2"],"Properties":[],"TOCHTML":"tochtml1","Timestamp":"20010419042521","EnableOOUI":true,"IndexPolicy":"noindex","ExtensionData":[],"LimitReportData":{"limit_report_key1":"value1"},"LimitReportJSData":{"limit_report_key1":"value1"},"CacheMessage":"","ParseStartTime":[],"PreventClickjacking":false,"ExtraScriptSrcs":[],"ExtraDefaultSrcs":[],"ExtraStyleSrcs":[],"Flags":{"test":true},"SpeculativeRevId":42,"SpeculativePageIdUsed":null,"RevisionTimestampUsed":null,"RevisionUsedSha1Base36":null,"WrapperDivClasses":[],"ParseUsedOptions":[],"CacheExpiry":null,"CacheTime":"","CacheRevisionId":null,"_type_":"ParserOutput"} \ No newline at end of file
+{"Text":"","LanguageLinks":["link1","link2"],"Categories":{"category2":"1","category1":"2"},"Indicators":{"indicator1":"indicator1_value"},"TitleText":"title_text1","Links":{"0":{"Link1":42},"2":{"Link2":43}},"LinksSpecial":[],"Templates":{"10":{"Template1":42}},"TemplateIds":{"10":{"Template1":4242}},"Images":{"Image1":1},"FileSearchOptions":{"Image1":{"time":"19731129213309","sha1":"test_sha1"}},"ExternalLinks":{"https://test.org":1},"InterwikiLinks":{"enwiki":{"interwiki1":1,"interwiki2":1}},"NewSection":true,"HideNewSection":true,"NoGallery":false,"HeadItems":{"tag1":"head_item1"},"Modules":["module1"],"ModuleStyles":["module_style1"],"JsConfigVars":{"key1":"value1"},"OutputHooks":[["hook1",{"boolean":true,"null":null,"number":42,"string":"string","array":[1,2,3],"map":{"key":"value"}}]],"Warnings":{"warning1":1},"Sections":["section1","section2"],"Properties":[],"TOCHTML":"tochtml1","Timestamp":"20010419042521","EnableOOUI":true,"IndexPolicy":"noindex","ExtensionData":[],"LimitReportData":{"limit_report_key1":"value1"},"LimitReportJSData":{"limit_report_key1":"value1"},"CacheMessage":"","ParseStartTime":[],"PreventClickjacking":false,"ExtraScriptSrcs":[],"ExtraDefaultSrcs":[],"ExtraStyleSrcs":[],"Flags":{"test":true},"SpeculativeRevId":42,"SpeculativePageIdUsed":null,"RevisionTimestampUsed":null,"RevisionUsedSha1Base36":null,"WrapperDivClasses":[],"ParseUsedOptions":[],"CacheExpiry":null,"CacheTime":"","CacheRevisionId":null,"_type_":"ParserOutput"} \ No newline at end of file
diff --git a/tests/phpunit/data/ParserCache/1.38-ParserOutput-withMetadata.serialized b/tests/phpunit/data/ParserCache/1.38-ParserOutput-withMetadata.serialized
index b23fe44de6e8..d97b30b6a441 100644
--- a/tests/phpunit/data/ParserCache/1.38-ParserOutput-withMetadata.serialized
+++ b/tests/phpunit/data/ParserCache/1.38-ParserOutput-withMetadata.serialized
Binary files differ
diff --git a/tests/phpunit/includes/parser/ParserCacheSerializationTestCases.php b/tests/phpunit/includes/parser/ParserCacheSerializationTestCases.php
index 94b391093d76..8ecadaee44a3 100644
--- a/tests/phpunit/includes/parser/ParserCacheSerializationTestCases.php
+++ b/tests/phpunit/includes/parser/ParserCacheSerializationTestCases.php
@@ -166,8 +166,8 @@ abstract class ParserCacheSerializationTestCases {
$parserOutputWithMetadata->addLanguageLink( 'link2' );
$parserOutputWithMetadata->addInterwikiLink( Title::makeTitle( NS_MAIN, 'interwiki1', '', 'enwiki' ) );
$parserOutputWithMetadata->addInterwikiLink( Title::makeTitle( NS_MAIN, 'interwiki2', '', 'enwiki' ) );
- $parserOutputWithMetadata->addCategory( 'category2', 1 );
- $parserOutputWithMetadata->addCategory( 'category1', 2 );
+ $parserOutputWithMetadata->addCategory( 'category2', '1' );
+ $parserOutputWithMetadata->addCategory( 'category1', '2' );
$parserOutputWithMetadata->setIndicator( 'indicator1', 'indicator1_value' );
$parserOutputWithMetadata->setTitleText( 'title_text1' );
$parserOutputWithMetadata->setSections( [ 'section1', 'section2' ] );
@@ -337,8 +337,8 @@ abstract class ParserCacheSerializationTestCases {
] ], $object->getInterwikiLinks() );
$testCase->assertArrayEquals( [ 'category1', 'category2' ], $object->getCategoryNames() );
$testCase->assertArrayEquals( [
- 'category1' => 2,
- 'vategory2' => 1
+ 'category1' => '2',
+ 'category2' => '1'
], $object->getCategories() );
$testCase->assertArrayEquals( [ 'indicator1' => 'indicator1_value' ], $object->getIndicators() );
$testCase->assertSame( 'title_text1', $object->getTitleText() );