Skip to content

Commit 9d5b7de

Browse files
committed
MC-37564: Create automated test for "Delete CMS Block"
1 parent ef5d734 commit 9d5b7de

File tree

1 file changed

+3
-3
lines changed
  • dev/tests/integration/testsuite/Magento/Cms/Controller/Adminhtml/Block

1 file changed

+3
-3
lines changed

dev/tests/integration/testsuite/Magento/Cms/Controller/Adminhtml/Block/DeleteTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
class DeleteTest extends AbstractBackendController
2525
{
2626
/** @var GetBlockByIdentifierInterface */
27-
private $getBlockByIdentifierInterface;
27+
private $getBlockByIdentifier;
2828

2929
/** @var StoreManagerInterface */
3030
private $storeManager;
@@ -39,7 +39,7 @@ protected function setUp(): void
3939
{
4040
parent::setUp();
4141

42-
$this->getBlockByIdentifierInterface = $this->_objectManager->get(GetBlockByIdentifierInterface::class);
42+
$this->getBlockByIdentifier = $this->_objectManager->get(GetBlockByIdentifierInterface::class);
4343
$this->storeManager = $this->_objectManager->get(StoreManagerInterface::class);
4444
$this->collectionFactory = $this->_objectManager->get(CollectionFactory::class);
4545
}
@@ -52,7 +52,7 @@ protected function setUp(): void
5252
public function testDeleteBlock(): void
5353
{
5454
$defaultStoreId = (int)$this->storeManager->getStore('default')->getId();
55-
$blockId = $this->getBlockByIdentifierInterface->execute('default_store_block', $defaultStoreId)->getId();
55+
$blockId = $this->getBlockByIdentifier->execute('default_store_block', $defaultStoreId)->getId();
5656
$this->getRequest()->setMethod(Http::METHOD_POST)
5757
->setParams(['block_id' => $blockId]);
5858
$this->dispatch('backend/cms/block/delete');

0 commit comments

Comments
 (0)