コード例 #1
0
 /**
  * Tests the JApplicationCms::getTemplate method.
  *
  * @return  void
  *
  * @since   3.2
  */
 public function testGetTemplate()
 {
     $template = $this->class->getTemplate(true);
     $this->assertInstanceOf('\\Joomla\\Registry\\Registry', $template->params);
     $this->assertEquals('system', $template->template);
 }
コード例 #2
0
 /**
  * Tests the JApplicationCms::getTemplate method.
  *
  * @return  void
  *
  * @since   3.2
  */
 public function testGetTemplate()
 {
     $template = $this->class->getTemplate(true);
     $this->assertThat($template->params, $this->isInstanceOf('JRegistry'));
     $this->assertThat($template->template, $this->equalTo('system'));
 }