public function AssetRefreshManagerTest::testLastReadIntervalGetterSetter in Media: Acquia DAM 8
Validate that we can modify the last read interval property correctly.
File
- tests/
src/ Unit/ AssetRefreshManagerTest.php, line 80
Class
- AssetRefreshManagerTest
- AssetRefreshManager Service test.
Namespace
Drupal\Tests\media_acquiadam\UnitCode
public function testLastReadIntervalGetterSetter() {
$expected = 10000000;
$this
->assertEquals($expected, $this->assetRefreshManager
->getLastReadInterval());
$original = $this->assetRefreshManager
->setLastReadInterval($expected * 2);
$this
->assertEquals($expected, $original);
$original = $this->assetRefreshManager
->setLastReadInterval($original);
$this
->assertEquals($expected * 2, $original);
}