public function AssetRefreshManagerTest::testRequestLimitGetterSetter in Media: Acquia DAM 8
Validate that we can modify the request limit property correctly.
File
- tests/
src/ Unit/ AssetRefreshManagerTest.php, line 93
Class
- AssetRefreshManagerTest
- AssetRefreshManager Service test.
Namespace
Drupal\Tests\media_acquiadam\UnitCode
public function testRequestLimitGetterSetter() {
$expected = 3;
$this
->assertEquals($expected, $this->assetRefreshManager
->getRequestLimit());
$original = $this->assetRefreshManager
->setRequestLimit($expected * 2);
$this
->assertEquals($expected, $original);
$original = $this->assetRefreshManager
->setRequestLimit($expected);
$this
->assertEquals($expected * 2, $original);
}