/** * Tests the JApplicationSite::setDetectBrowser and getDetectBrowser methods. * * @return void * * @since 3.2 */ public function testSetGetDetectBrowser() { $this->assertFalse($this->class->setDetectBrowser(true)); $this->assertTrue($this->class->getDetectBrowser()); }
/** * Tests the JApplicationSite::setDetectBrowser and getDetectBrowser methods. * * @return void * * @since 3.2 */ public function testSetGetDetectBrowser() { $this->assertFalse($this->class->setDetectBrowser(true), 'setDetectBrowser should return the previous state.'); $this->assertTrue($this->class->getDetectBrowser(), 'setDetectBrowser should return the new state.'); }