/**
  * @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);
 }
Example #2
0
 /**
  * @param string $tag
  *
  * @return Filesystem
  */
 public function getOwnerPrivateStorageMount($tag = null)
 {
     return InstanceStorage::getOwnerPrivateStorageMount($this, $tag);
 }