/**
  * Initiate the controller and page classes and configure GeoNetwork service
  * to use the mockup-controller for testing.
  */
 function setUp()
 {
     parent::setUp();
     $url = Director::absoluteBaseURL() . 'GetRecordsCommandTest_Controller';
     $page = $this->objFromFixture('CataloguePage', 'catalogue');
     $page->GeonetworkBaseURL = $url;
     $this->controller = new CataloguePage_Controller($page);
     $this->controller->pushCurrent();
     GetRecordsCommand::set_catalogue_url("/getrecords?usetestmanifest=1&flush=1");
 }
 static function set_catalogue_url($value)
 {
     self::$catalogue_url = $value;
 }
 /**
  * Initiate the controller and page classes and configure GeoNetwork service
  * to use the mockup-controller for testing.
  */
 function setUp()
 {
     parent::setUp();
     $url = Director::absoluteBaseURL() . 'GetRecordsCommandTest_Controller';
     $page = $this->objFromFixture('CataloguePage', 'catalogue');
     $page->GeonetworkBaseURL = $url;
     $this->controller = new CataloguePage_Controller($page);
     $this->controller->pushCurrent();
     GetRecordsCommand::set_catalogue_url("/getrecords?usetestmanifest=1&flush=1");
     // check from where the test is executed (important when running the
     // tests via a CI environment.
     if (in_array('cli-script.php', scandir('.'))) {
         // system is in sapphire directory
         $this->directory_prefix = '../geocatalogue/xslt/';
     } else {
         if (in_array('geocatalog', scandir('.'))) {
             $this->directory_prefix = 'geocatalogue/xslt/';
         }
     }
 }