/**
  * @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());
 }
コード例 #2
0
 /**
  * @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());
 }
コード例 #3
0
 /**
  * @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());
 }
コード例 #4
0
 /**
  * @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());
 }
コード例 #5
0
 /**
  * @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());
 }
コード例 #6
0
 /**
  * Constructs the access condition object with none option. 
  */
 public function __construct()
 {
     $this->_accessCondition = AccessCondition::none();
 }