function testGetStorageName() { StorageFactory::setStorageRoot("/test/permanent_storage/"); $this->assertEquals("/test/permanent_storage/", StorageFactory::getStorageRoot(), "La root dello storage non corrisponde!!"); $storage = StorageFactory::getPropertiesStorage("my_folder", "storage_02"); $this->assertTrue($storage->exists(), "Lo storage non esiste!!"); $this->assertEquals("storage_02", $storage->getName()); $this->assertEquals(StorageFactory::PROPERTIES_STORAGE, $storage->getStorageType(), "Il tipo di storage non corrisponde!!"); StorageFactory::setStorageRoot(StorageFactory::getDefaultStorageRoot()); }