/** * Tests the JWeb::loadLanguage method. * * @return void * * @since 11.3 */ public function testLoadLanguage() { $this->inspector->loadLanguage(); $this->assertInstanceOf('JLanguage', $this->inspector->getClassProperty('language'), 'Tests that the language object is the correct class.'); $this->assertThat($this->inspector->getClassProperty('language')->test(), $this->equalTo('ok'), 'Tests that we got the language from the factory.'); }