public function TestClient::addAsset in Media: Acquia DAM 8
Add or modify a test asset.
Parameters
\cweagans\webdam\Entity\Asset $asset: The asset to add/modify.
File
- tests/
modules/ media_acquiadam_test/ src/ TestClient.php, line 65
Class
- TestClient
- Overridden implementation of the Acquia DAM client for testing.
Namespace
Drupal\media_acquiadam_testCode
public function addAsset(Asset $asset) {
$this->testAssets[$asset->id] = $asset;
}