public function buildMetadataPath($sugarcrm_path, $metadata_path)
 {
     if ($metadata_path === $this->getMetadataFileDefault()) {
         if ($sugarcrm_path !== null) {
             $metadata_path = Utils::makeConfigPathRelative($sugarcrm_path, self::METADATA_PATH);
         }
     }
     return $metadata_path;
 }
 public function buildRelsPath($sugarcrm_path, $rels_path)
 {
     if ($rels_path === $this->getRelsFileDefault()) {
         if ($sugarcrm_path !== null) {
             $rels_path = Utils::makeConfigPathRelative($sugarcrm_path, self::RELS_PATH);
         }
     }
     return $rels_path;
 }
Example #3
0
 /**
  * @dataProvider pathProvider
  */
 public function testGetRelativePath($expected, $config_path, $option_path, $current_directory)
 {
     $actual = Utils::makeConfigPathRelative($config_path, $option_path, $current_directory);
     $this->assertEquals($expected, $actual);
 }
Example #4
0
 public function getRelativePath($conf_path, $sugar_path)
 {
     $conf_path = Path::getDirectory($conf_path);
     return Utils::makeConfigPathRelative($conf_path, $sugar_path);
 }