public function testCheckRetentionPolicy()
 {
     $rp = new RetentionPolicy();
     $this->assertNull($rp->getDays(), 'Default RetentionPolicy->getDays should be null');
     $this->assertNull($rp->getEnabled(), 'Default RetentionPolicy->getEnabled should be null');
     $rp->setDays(10);
     $rp->setEnabled(true);
     $this->assertEquals(10, $rp->getDays(), 'Set RetentionPolicy->getDays should be 10');
     $this->assertTrue($rp->getEnabled(), 'Set RetentionPolicy->getEnabled should be true');
 }
 public function testCheckRetentionPolicy()
 {
     // Check that the default values of options are reasonable
     $rp = new RetentionPolicy();
     $this->assertNull($rp->getDays(), 'Default RetentionPolicy->getDays should be null');
     $this->assertNull($rp->getEnabled(), 'Default RetentionPolicy->getEnabled should be null');
     $rp->setDays(10);
     $rp->setEnabled(true);
     $this->assertEquals(10, $rp->getDays(), 'Set RetentionPolicy->getDays should be 10');
     $this->assertTrue($rp->getEnabled(), 'Set RetentionPolicy->getEnabled should be true');
 }
 /**
  * @covers MicrosoftAzure\Storage\Common\Models\RetentionPolicy::setDays
  */
 public function testSetDays()
 {
     // Setup
     $sample = TestResources::getServicePropertiesSample();
     $retentionPolicy = new RetentionPolicy();
     $expected = intval($sample['Logging']['RetentionPolicy']['Days']);
     // Test
     $retentionPolicy->setDays($expected);
     // Assert
     $actual = $retentionPolicy->getDays();
     $this->assertEquals($expected, $actual);
 }