public function AssetDataTest::testIsUpdatedAsset in Media: Acquia DAM 8
Validates that we can correctly determine if an asset has been updated.
File
- tests/
src/ Unit/ AssetDataTest.php, line 39
Class
- AssetDataTest
- Tests to validate that the asset data service works as expected.
Namespace
Drupal\Tests\media_acquiadam\UnitCode
public function testIsUpdatedAsset() {
$asset = $this
->getAssetData();
$this
->assertTrue($this->acquiaAssetData
->isUpdatedAsset($asset));
$asset->id = 3455970;
$this
->assertFalse($this->acquiaAssetData
->isUpdatedAsset($asset));
}