コード例 #1
0
ファイル: unitTest.php プロジェクト: carnevlu/repoman
 /**
  *
  */
 public function testBuildPrep()
 {
     $pkg_root_dir = dirname(__FILE__) . '/repos/pkg8/';
     $config = Repoman::load_config($pkg_root_dir);
     $config['namespace'] = $this->_get_rand_name();
     $Repoman = new Repoman(self::$modx, $config);
     $core_path = $Repoman->get_core_path($pkg_root_dir);
     $Repoman->build_prep($pkg_root_dir);
     $core_dir = MODX_CORE_PATH . 'cache/repoman/_build/core/components/' . $config['namespace'];
     $this->assertTrue(file_exists($core_dir), 'Build prep should have created a valid directory structure.');
     $this->assertTrue(is_dir($core_dir), 'Build prep should have created a valid directory structure.');
 }