12 'modules' =>
'test.context',
24 $this->assertEquals( $derived->getDebug(),
false );
25 $this->assertEquals( $derived->getLanguage(),
'zh' );
26 $this->assertEquals( $derived->getModules(), [
'test.context' ] );
27 $this->assertEquals( $derived->getOnly(),
'scripts' );
28 $this->assertEquals( $derived->getSkin(),
'fallback' );
29 $this->assertEquals( $derived->getUser(), null );
32 $this->assertEquals( $derived->getDirection(),
'ltr' );
33 $this->assertEquals( $derived->getHash(),
'zh|fallback|||scripts|||||' );
39 $derived->setModules( [
'test.override' ] );
40 $this->assertEquals( $derived->getModules(), [
'test.override' ] );
47 $derived->setLanguage(
'nl' );
48 $this->assertEquals( $derived->getLanguage(),
'nl' );
54 $derived->setLanguage(
'nl' );
55 $this->assertEquals( $derived->getDirection(),
'ltr' );
57 $derived->setLanguage(
'he' );
58 $this->assertEquals( $derived->getDirection(),
'rtl' );
60 $derived->setDirection(
'ltr' );
61 $this->assertEquals( $derived->getDirection(),
'ltr' );
67 $derived->setSkin(
'override' );
68 $this->assertEquals( $derived->getSkin(),
'override' );
74 $derived->setUser(
'Example' );
75 $this->assertEquals( $derived->getUser(),
'Example' );
81 $derived->setDebug(
true );
82 $this->assertEquals( $derived->getDebug(),
true );
88 $derived->setOnly(
'styles' );
89 $this->assertEquals( $derived->getOnly(),
'styles' );
91 $derived->setOnly(
null );
92 $this->assertEquals( $derived->getOnly(), null );
98 $derived->setVersion(
'hw1' );
99 $this->assertEquals( $derived->getVersion(),
'hw1' );
105 $derived->setRaw(
true );
106 $this->assertEquals( $derived->getRaw(),
true );
112 $this->assertEquals( $derived->getHash(),
'zh|fallback|||scripts|||||' );
114 $derived->setLanguage(
'nl' );
115 $derived->setUser(
'Example' );
117 $this->assertEquals( $derived->getHash(),
'nl|fallback||Example|scripts|||||' );
123 $this->assertSame( $derived->getRequest(),
$context->getRequest() );
124 $this->assertSame( $derived->getResourceLoader(),
$context->getResourceLoader() );