コード例 #1
0
 public function setUp()
 {
     parent::setUp();
     $this->doc = new OpusDocumentMock();
     $this->doc->setServerState('temporary');
     $this->doc->store();
 }
コード例 #2
0
 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();
 }
コード例 #3
0
 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/');
 }