@magentoAppArea adminhtml
Definition at line 20 of file BlockTest.php.
◆ testGetByIdentifier()
| testGetByIdentifier |
( |
array |
$blockData | ) |
|
Tests the get by identifier command
- Parameters
-
- Exceptions
-
Definition at line 63 of file BlockTest.php.
65 # Prepare and save the temporary block 66 $tempBlock = $this->blockFactory->create();
67 $tempBlock->setData($blockData);
68 $this->blockResource->save($tempBlock);
70 # Load previously created block and compare identifiers 71 $storeId = reset($blockData[
'stores']);
72 $block = $this->blockIdentifier->execute($blockData[
'identifier'],
$storeId);
73 $this->assertEquals($blockData[
'identifier'],
$block->getIdentifier());
◆ testGetByIdentifierDataProvider()
| testGetByIdentifierDataProvider |
( |
| ) |
|
Data provider for "testGetByIdentifier" and "testUpdateTime" method
- Returns
- array
Definition at line 115 of file BlockTest.php.
120 'title' =>
'Test title',
122 'identifier' =>
'test-identifier',
123 'content' =>
'Test content',
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/integration/testsuite/Magento/Cms/Model/BlockTest.php