Ejemplo n.º 1
0
 /**
  * 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());
 }
Ejemplo n.º 2
0
 /**
  * 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.');
 }