/**
  * @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);
 }
Beispiel #2
0
 /**
  * Returns the instance's storage area as a filesystem
  *
  * @param string $tag
  *
  * @return Filesystem
  */
 public function getStorageMount($tag = null)
 {
     return InstanceStorage::getStorageMount($this, $tag);
 }