createMock( Title::class ); $title->method( 'inNamespace' ) ->willReturn( true ); $title->method( 'getText' ) ->willReturn( 'Cite-tool-definition.json' ); ( new CiteHooks( $this->createMock( ReferencePreviewsContext::class ), new StaticUserOptionsLookup( [] ) ) ) ->onContentHandlerDefaultModelFor( $title, $model ); $this->assertSame( CONTENT_MODEL_JSON, $model ); } }