Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F585048
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
795 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/tests/phpunit/maintenance/CleanupCapsTest.php b/tests/phpunit/maintenance/CleanupCapsTest.php
index 694f11ddebc..824524f7cb6 100644
--- a/tests/phpunit/maintenance/CleanupCapsTest.php
+++ b/tests/phpunit/maintenance/CleanupCapsTest.php
@@ -18,6 +18,13 @@ class CleanupCapsTest extends MaintenanceBaseTestCase {
return CleanupCaps::class;
}
+ protected function setUp(): void {
+ parent::setUp();
+ // We clear the title cache because these tests will create title objects with lowercase form and uppercase
+ // form
+ Title::clearCaches();
+ }
+
/** @dataProvider provideCapitalLinksValues */
public function testWhenNamespaceEmpty( bool $capitalLinks, string $stringToExpectInOutput ) {
$this->overrideConfigValue( MainConfigNames::CapitalLinks, $capitalLinks );
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Jul 5, 5:31 AM (7 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
227493
Default Alt Text
(795 B)
Attached To
Mode
rMW mediawiki
Attached
Detach File
Event Timeline
Log In to Comment