public function setUp()
 {
     parent::setUp();
     $this->doc = new OpusDocumentMock();
     $this->doc->setServerState('temporary');
     $this->doc->store();
 }
 public function tearDown()
 {
     if ($this->documentImported) {
         $ids = Opus_Document::getAllIds();
         $last_id = array_pop($ids);
         $doc = new Opus_Document($last_id);
         $doc->deletePermanent();
     }
     parent::tearDown();
 }
 public function setUp()
 {
     parent::setUp();
     $this->document = $this->createTestDocument();
     $this->document->store();
 }
示例#4
0
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     self::$scriptPath = realpath(dirname(__FILE__) . '/../../../scripts/cron') . '/';
     self::$lockDir = realpath(self::$scriptPath . '/../../workspace/cache/');
 }