/**
	 * Tests the JApplicationWeb::loadLanguage method.
	 *
	 * @return  void
	 *
	 * @since   11.3
	 */
	public function testLoadLanguage()
	{
		$this->class->loadLanguage();

		$this->assertInstanceOf(
			'JLanguage',
			TestReflection::getValue($this->class, 'language'),
			'Tests that the language object is the correct class.'
		);

		$this->assertThat(
			TestReflection::getValue($this->class, 'language')->test(),
			$this->equalTo('ok'),
			'Tests that we got the language from the factory.'
		);
	}
Esempio n. 2
0
 /**
  * Tests the JApplicationWeb::loadLanguage method.
  *
  * @return  void
  *
  * @since   11.3
  */
 public function testLoadLanguage()
 {
     $this->class->loadLanguage();
     $this->assertAttributeInstanceOf('JLanguage', 'language', $this->class);
 }
Esempio n. 3
0
 /**
  * Tests the JApplicationWeb::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.');
 }