/** * @covers WindowsAzure\ServiceManagement\Models\UpdateStorageServiceOptions::setDescription * @covers WindowsAzure\ServiceManagement\Models\UpdateStorageServiceOptions::getDescription */ public function testSetDescription() { // Setup $options = new UpdateStorageServiceOptions(); $expected = 'Description'; // Test $options->setDescription($expected); // Assert $this->assertEquals($expected, $options->getDescription()); }
/** * @covers WindowsAzure\ServiceManagement\ServiceManagementRestProxy::updateStorageService * @covers WindowsAzure\ServiceManagement\ServiceManagementRestProxy::_getStorageServicePath * @covers WindowsAzure\ServiceManagement\ServiceManagementRestProxy::_getPath * @depends testListStorageServices */ public function testUpdateStorageService() { // Setup $name = $this->_storageServiceName; $options = new UpdateStorageServiceOptions(); $expectedDesc = 'My description'; $expectedLabel = base64_encode('new label'); $options->setDescription($expectedDesc); $options->setLabel($expectedLabel); // Test $this->restProxy->updateStorageService($name, $options); // Assert $result = $this->restProxy->getStorageServiceProperties($name); $this->assertEquals($expectedDesc, $result->getStorageService()->getDescription()); $this->assertEquals($expectedLabel, $result->getStorageService()->getLabel()); }