コード例 #1
0
 /**
  * @covers InstanceStorage::getStorageMount
  * @covers InstanceStorage::getPrivateStorageMount
  * @covers InstanceStorage::getOwnerPrivateStorageMount
  * @covers InstanceStorage::getSnapshotMount
  */
 public function testStorageMounts()
 {
     $_instance = $this->_findInstance('dfe-test-case');
     $_testFile = '_test.file_';
     $_contents = 'test';
     $this->_doFileTest(InstanceStorage::getStorageMount($_instance), $_testFile, $_contents, static::INSTANCE_STORAGE_PATH);
     $this->_doFileTest(InstanceStorage::getPrivateStorageMount($_instance), $_testFile, $_contents, static::INSTANCE_PRIVATE_PATH);
     $this->_doFileTest(InstanceStorage::getOwnerPrivateStorageMount($_instance), $_testFile, $_contents, static::OWNER_PRIVATE_PATH);
     $this->_doFileTest(InstanceStorage::getSnapshotMount($_instance), $_testFile, $_contents, static::SNAPSHOT_PATH);
 }
コード例 #2
0
ファイル: Instance.php プロジェクト: pkdevboxy/dfe-database
 /**
  * @param string $tag
  *
  * @return Filesystem
  */
 public function getPrivateStorageMount($tag = null)
 {
     return InstanceStorage::getPrivateStorageMount($this, $tag);
 }