Page MenuHomePhorge

No OneTemporary

Size
795 B
Referenced Files
None
Subscribers
None
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

Mime Type
text/x-diff
Expires
Sat, Jul 5, 5:31 AM (7 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
227493
Default Alt Text
(795 B)

Event Timeline