/**
  * @covers MicrosoftAzure\Storage\Blob\Models\SetBlobPropertiesOptions::setAccessCondition
  */
 public function testSetAccessCondition()
 {
     // Setup
     $expected = AccessCondition::none();
     $result = new SetBlobPropertiesOptions();
     // Test
     $result->setAccessCondition($expected);
     // Assert
     $this->assertEquals($expected, $result->getAccessCondition());
 }
 public static function getSetBlobPropertiesOptions()
 {
     $ret = array();
     $options = new SetBlobPropertiesOptions();
     array_push($ret, $options);
     $options = new SetBlobPropertiesOptions();
     $options->setTimeout(10);
     array_push($ret, $options);
     $options = new SetBlobPropertiesOptions();
     $options->setTimeout(-10);
     array_push($ret, $options);
     // Get Blob Properties only supports the temporal access conditions.
     foreach (self::getTemporalAccessConditions() as $ac) {
         $options = new SetBlobPropertiesOptions();
         $options->setAccessCondition($ac);
         array_push($ret, $options);
     }
     $options = new SetBlobPropertiesOptions();
     $options->setBlobCacheControl('setBlobCacheControl');
     array_push($ret, $options);
     $options = new SetBlobPropertiesOptions();
     $options->setBlobContentEncoding('setBlobContentEncoding');
     array_push($ret, $options);
     $options = new SetBlobPropertiesOptions();
     $options->setBlobContentLanguage('setBlobContentLanguage');
     array_push($ret, $options);
     // Note: This is not allowed on block blobs
     $options = new SetBlobPropertiesOptions();
     $options->setBlobContentLength(2048);
     array_push($ret, $options);
     $options = new SetBlobPropertiesOptions();
     $options->setBlobContentMD5('d41d8cd98f00b204e9800998ecf8427e');
     array_push($ret, $options);
     $options = new SetBlobPropertiesOptions();
     $options->setBlobContentType('setContentType');
     array_push($ret, $options);
     // TODO: Handle Lease ID
     //        $options = new SetBlobPropertiesOptions();
     //        $options->setLeaseId('setLeaseId');
     //        array_push($ret, $options);
     // Note: This is not allowed on block blobs
     $options = new SetBlobPropertiesOptions();
     $options->setSequenceNumber(0);
     $options->setSequenceNumberAction('update');
     array_push($ret, $options);
     return $ret;
 }