/** * @covers WindowsAzure\Blob\Models\SetContainerMetadataOptions::setAccessCondition */ public function testSetAccessCondition() { // Setup $expected = AccessCondition::none(); $result = new SetContainerMetadataOptions(); // Test $result->setAccessCondition($expected); // Assert $this->assertEquals($expected, $result->getAccessCondition()); }
/** * @covers WindowsAzure\Blob\Models\GetBlobPropertiesOptions::setAccessCondition */ public function testSetAccessCondition() { // Setup $expected = AccessCondition::none(); $result = new GetBlobPropertiesOptions(); // Test $result->setAccessCondition($expected); // Assert $this->assertEquals($expected, $result->getAccessCondition()); }
/** * @covers WindowsAzure\Blob\Models\CreateBlobPagesOptions::setAccessCondition */ public function testSetAccessCondition() { // Setup $expected = AccessCondition::none(); $options = new CreateBlobPagesOptions(); // Test $options->setAccessCondition($expected); // Assert $this->assertEquals($expected, $options->getAccessCondition()); }
/** * @covers WindowsAzure\Blob\Models\DeleteContainerOptions::setAccessCondition */ public function testSetAccessCondition() { // Setup $expected = AccessCondition::none(); $options = new DeleteContainerOptions(); // Test $options->setAccessCondition($expected); // Assert $this->assertEquals($expected, $options->getAccessCondition()); }
/** * @covers WindowsAzure\Blob\Models\AccessCondition::none * @covers WindowsAzure\Blob\Models\AccessCondition::getHeader * @covers WindowsAzure\Blob\Models\AccessCondition::getValue */ public function testNone() { // Setup $expectedHeader = Resources::EMPTY_STRING; $expectedValue = null; // Test $actual = AccessCondition::none(); // Assert $this->assertEquals($expectedHeader, $actual->getHeader()); $this->assertEquals($expectedValue, $actual->getValue()); }
/** * Constructs the access condition object with none option. */ public function __construct() { $this->_accessCondition = AccessCondition::none(); }