public function AssetRefreshManagerTest::testEmptyAssetIdFields in Media: Acquia DAM 8
Tests a "no asset id fields provided" scenario.
File
- tests/
src/ Unit/ AssetRefreshManagerTest.php, line 106
Class
- AssetRefreshManagerTest
- AssetRefreshManager Service test.
Namespace
Drupal\Tests\media_acquiadam\UnitCode
public function testEmptyAssetIdFields() {
$this->state
->method('get')
->willReturnMap([
[
'media_acquiadam.notifications_endtime',
self::REQUEST_TIME,
self::REQUEST_TIME,
],
]);
$this->state
->method('set')
->with('media_acquiadam.notifications_starttime', self::REQUEST_TIME);
$actual = $this->assetRefreshManager
->updateQueue([]);
$this
->assertEquals(0, $actual);
}