/**
  * Tests the getPath method.
  *
  * @return  void
  *
  * @covers  JViewHtml::getPath
  * @since   12.1
  */
 public function testGetPath()
 {
     // Set up a priority queue.
     $paths = $this->_instance->getPaths();
     $paths->insert(__DIR__ . '/layouts1', 1);
     $paths->insert(__DIR__ . '/layouts2', 2);
     // Use of realpath to ensure test works for on all platforms
     $this->assertEquals(realpath(__DIR__ . '/layouts2/olivia.php'), $this->_instance->getPath('olivia'));
     $this->assertEquals(realpath(__DIR__ . '/layouts1/peter.php'), $this->_instance->getPath('peter'));
     $this->assertEquals(realpath(__DIR__ . '/layouts2/fauxlivia.php'), $this->_instance->getPath('fauxlivia'));
     $this->assertEquals(realpath(__DIR__ . '/layouts1/fringe/division.php'), $this->_instance->getPath('fringe/division'));
     $this->assertEquals(realpath(__DIR__ . '/layouts1/astrid.phtml'), $this->_instance->getPath('astrid', 'phtml'));
     $this->assertFalse($this->_instance->getPath('walter'));
     // Check dirty path.
     $this->assertEquals(realpath(__DIR__ . '/layouts1/fringe/division.php'), $this->_instance->getPath('fringe//\\division'));
 }
	/**
	 * Tests the getPath method.
	 *
	 * @return  void
	 *
	 * @covers  JViewHtml::getPath
	 * @since   12.1
	 */
	public function testGetPath()
	{
		// Set up a priority queue.
		$paths = $this->_instance->getPaths();
		$paths->insert(__DIR__ . '/layouts1', 1);
		$paths->insert(__DIR__ . '/layouts2', 2);

		$this->assertEquals(__DIR__ . '/layouts2/olivia.php', $this->_instance->getPath('olivia'));
		$this->assertEquals(__DIR__ . '/layouts1/peter.php', $this->_instance->getPath('peter'));
		$this->assertEquals(__DIR__ . '/layouts2/fauxlivia.php', $this->_instance->getPath('fauxlivia'));
		$this->assertEquals(__DIR__ . '/layouts1/fringe/division.php', $this->_instance->getPath('fringe/division'));
		$this->assertFalse($this->_instance->getPath('walter'));

		// Check dirty path.
		$this->assertEquals(__DIR__ . '/layouts1/fringe/division.php', $this->_instance->getPath('fringe//\\division'));
	}