getAssetsByIds = Bootstrap::getObjectManager()->get(GetAssetsByIdsInterface::class); } /** * Testing assets keywords save and get * * @throws \Magento\Framework\Exception\LocalizedException * * @magentoDataFixture Magento/MediaGallery/_files/media_asset.php */ public function testExecute(): void { $assets = $this->getAssetsByIds->execute([self::FIXTURE_ASSET_ID]); $this->assertCount(1, $assets); $this->assertEquals($assets[0]->getPath(), self::FIXTURE_ASSET_PATH); } }