Example #1
0
 /**
  * Test JViewLegacy::addHelperPath()
  *
  * @since   11.3
  *
  * @return  void
  */
 public function testAddHelperPath()
 {
     $ds = DIRECTORY_SEPARATOR;
     // Reset the internal _path property so we can track it more easily.
     TestReflection::setValue($this->class, '_path', array('helper' => array(), 'template' => array()));
     $this->class->addHelperPath(JPATH_ROOT . $ds . 'libraries');
     $this->assertAttributeEquals(array('helper' => array(realpath(JPATH_ROOT . $ds . 'libraries') . $ds), 'template' => array()), '_path', $this->class);
     $this->class->addHelperPath(JPATH_ROOT . $ds . 'cache');
     $this->assertAttributeEquals(array('helper' => array(realpath(JPATH_ROOT . $ds . 'cache') . $ds, realpath(JPATH_ROOT . $ds . 'libraries') . $ds), 'template' => array()), '_path', $this->class);
 }