88
99namespace Magento \MediaContentCatalog \Model \ResourceModel ;
1010
11- use Magento \MediaContentApi \Api \GetAssetIdByContentFieldInterface ;
11+ use Magento \MediaContentApi \Api \GetAssetIdsByContentFieldInterface ;
1212use Magento \Store \Model \StoreManagerInterface ;
1313use Magento \TestFramework \Helper \Bootstrap ;
1414use PHPUnit \Framework \TestCase ;
1515
1616/**
1717 * Test for GetAssetIdByContentFieldTest
1818 */
19- class GetAssetIdByContentFieldTest extends TestCase
19+ class GetAssetIdsByContentFieldTest extends TestCase
2020{
2121 private const STORE_FIELD = 'store_id ' ;
2222 private const STATUS_FIELD = 'content_status ' ;
2323 private const STATUS_ENABLED = '1 ' ;
2424 private const STATUS_DISABLED = '0 ' ;
2525
2626 /**
27- * @var GetAssetIdByContentFieldInterface
27+ * @var GetAssetIdsByContentFieldInterface
2828 */
29- private $ getAssetIdByContentField ;
29+ private $ getAssetIdsByContentField ;
3030
3131 /**
3232 * @var int
@@ -40,7 +40,7 @@ protected function setUp(): void
4040 {
4141 $ objectManager = Bootstrap::getObjectManager ();
4242 $ this ->storeId = $ objectManager ->get (StoreManagerInterface::class)->getStore ()->getId ();
43- $ this ->getAssetIdByContentField = $ objectManager ->get (GetAssetIdByContentFieldInterface ::class);
43+ $ this ->getAssetIdsByContentField = $ objectManager ->get (GetAssetIdsByContentFieldInterface ::class);
4444 }
4545
4646 /**
@@ -53,7 +53,7 @@ public function testCategoryStoreView(): void
5353 {
5454 $ this ->assertEquals (
5555 [2020 ],
56- $ this ->getAssetIdByContentField ->execute (self ::STORE_FIELD , (string )$ this ->storeId )
56+ $ this ->getAssetIdsByContentField ->execute (self ::STORE_FIELD , (string )$ this ->storeId )
5757 );
5858 }
5959
@@ -67,7 +67,7 @@ public function testProductStoreView(): void
6767 {
6868 $ this ->assertEquals (
6969 [2020 ],
70- $ this ->getAssetIdByContentField ->execute (self ::STORE_FIELD , (string )$ this ->storeId )
70+ $ this ->getAssetIdsByContentField ->execute (self ::STORE_FIELD , (string )$ this ->storeId )
7171 );
7272 }
7373
@@ -81,7 +81,7 @@ public function testProductStatusEnabled(): void
8181 {
8282 $ this ->assertEquals (
8383 [2020 ],
84- $ this ->getAssetIdByContentField ->execute (self ::STATUS_FIELD , self ::STATUS_ENABLED )
84+ $ this ->getAssetIdsByContentField ->execute (self ::STATUS_FIELD , self ::STATUS_ENABLED )
8585 );
8686 }
8787
@@ -95,7 +95,7 @@ public function testProductStatusDisabled(): void
9595 {
9696 $ this ->assertEquals (
9797 [],
98- $ this ->getAssetIdByContentField ->execute (self ::STATUS_FIELD , self ::STATUS_DISABLED )
98+ $ this ->getAssetIdsByContentField ->execute (self ::STATUS_FIELD , self ::STATUS_DISABLED )
9999 );
100100 }
101101}
0 commit comments