getConfVar( MainConfigNames::ContentHandlers ); $this->overrideConfigValue( MainConfigNames::ContentHandlers, [ 'with-text' => [ 'factory' => static function () { return new TextContentHandler( 'with-text', [ CONTENT_FORMAT_WIKITEXT, 'plain/test' ] ); } ], ] + $contentHandlers ); $this->resetServices(); $siteConfig = $this->getServiceContainer()->getParsoidSiteConfig(); $this->assertSame( $expected, $siteConfig->supportsContentModel( $model ) ); } }