Skip to content

Commit aa11cf5

Browse files
author
Gabriel Galvao da Gama
committed
Updated test names
1 parent 5f82525 commit aa11cf5

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,25 @@
88

99
namespace Magento\MediaContentCatalog\Model\ResourceModel;
1010

11-
use Magento\MediaContentApi\Api\GetAssetIdByContentFieldInterface;
11+
use Magento\MediaContentApi\Api\GetAssetIdsByContentFieldInterface;
1212
use Magento\Store\Model\StoreManagerInterface;
1313
use Magento\TestFramework\Helper\Bootstrap;
1414
use 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
}
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,25 @@
88

99
namespace Magento\MediaContentCms\Model\ResourceModel;
1010

11-
use Magento\MediaContentApi\Api\GetAssetIdByContentFieldInterface;
11+
use Magento\MediaContentApi\Api\GetAssetIdsByContentFieldInterface;
1212
use Magento\Store\Model\StoreManagerInterface;
1313
use Magento\TestFramework\Helper\Bootstrap;
1414
use 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 testBlockStoreView(): 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 testPageStatusEnabled(): void
6767
{
6868
$this->assertEquals(
6969
[2020],
70-
$this->getAssetIdByContentField->execute(self::STATUS_FIELD, self::STATUS_ENABLED)
70+
$this->getAssetIdsByContentField->execute(self::STATUS_FIELD, self::STATUS_ENABLED)
7171
);
7272
}
7373

@@ -81,7 +81,7 @@ public function testPageStatusDisabled(): void
8181
{
8282
$this->assertEquals(
8383
[],
84-
$this->getAssetIdByContentField->execute(self::STATUS_FIELD, self::STATUS_DISABLED)
84+
$this->getAssetIdsByContentField->execute(self::STATUS_FIELD, self::STATUS_DISABLED)
8585
);
8686
}
8787
}

0 commit comments

Comments
 (0)