Cache actions block.
Definition at line 15 of file Cache.php.
◆ flushCacheStorage()
Flush cache storage.
Definition at line 59 of file Cache.php.
61 $this->_rootElement->find($this->flushCacheStorageButton)->click();
◆ flushMagentoCache()
Flush magento cache.
Definition at line 51 of file Cache.php.
53 $this->_rootElement->find($this->flushMagentoCacheButton)->click();
◆ getMessagesBlock()
Get messages block.
- Returns
- \Magento\Backend\Test\Block\Messages
Definition at line 89 of file Cache.php.
91 return $this->blockFactory->create(
92 \
Magento\Backend\Test\Block\Messages::class,
93 [
'element' => $this->_rootElement->find($this->messagesSelector, Locator::SELECTOR_XPATH)]
◆ isMagentoCacheFlushed()
isMagentoCacheFlushed |
( |
| ) |
|
Is magento cache flushed successfully.
- Returns
- bool
Definition at line 79 of file Cache.php.
81 return $this->
getMessagesBlock()->getSuccessMessage() == $this->messagesText[
'cache_magento_flushed'];
◆ isStorageCacheFlushed()
isStorageCacheFlushed |
( |
| ) |
|
Is storage cache flushed successfully.
- Returns
- bool
Definition at line 69 of file Cache.php.
71 return $this->
getMessagesBlock()->getSuccessMessage() == $this->messagesText[
'cache_storage_flushed'];
◆ $flushCacheStorageButton
$flushCacheStorageButton = '[data-ui-id="adminhtml-cache-container-flush-system-button"]' |
|
protected |
◆ $flushMagentoCacheButton
$flushMagentoCacheButton = '[data-ui-id="adminhtml-cache-container-flush-magento-button"]' |
|
protected |
◆ $messagesSelector
$messagesSelector = '//ancestor::div//div[@id="messages"]' |
|
protected |
◆ $messagesText
Initial value:= [
'cache_storage_flushed' => 'You flushed the cache storage.',
'cache_magento_flushed' => 'The Magento cache storage has been flushed.',
]
Definition at line 43 of file Cache.php.
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/functional/tests/app/Magento/PageCache/Test/Block/Cache.php