/** * Tests the JApplicationSite::setTemplate method. * * @return void * * @since 3.2 */ public function testSetTemplate() { $this->class->setTemplate('beez3'); $template = $this->class->getTemplate(true); $this->assertInstanceOf('\\Joomla\\Registry\\Registry', $template->params); $this->assertEquals('beez3', $template->template); }
/** * Tests the JApplicationSite::setTemplate method. * * @return void * * @since 3.2 */ public function testSetTemplate() { $this->class->setTemplate('beez3'); $template = $this->class->getTemplate(true); $this->assertThat($template->params, $this->isInstanceOf('JRegistry')); $this->assertThat($template->template, $this->equalTo('beez3')); }