Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
testBlockPresentInHead () | |
testBlockIsAbsentInBody () | |
testBlockOutputIsEmptyWhenGaIsDisabled () | |
testBlockOutputExistsWhenGaIsEnabled () | |
![]() | |
getRequest () | |
getResponse () | |
assert404NotFound () | |
assertHeaderPcre ($headerName, $valueRegex) | |
assertRedirect (\PHPUnit\Framework\Constraint\Constraint $urlConstraint=null) | |
Protected Member Functions | |
setUp () | |
![]() | |
_getBootstrap () | |
setUp () | |
tearDown () | |
assertPostConditions () | |
getMessages ( $messageType=null, $messageManagerClass=\Magento\Framework\Message\Manager::class) | |
Additional Inherited Members | |
![]() | |
$_runCode = '' | |
$_runScope = 'store' | |
$_runOptions = [] | |
$_request | |
$_response | |
$_objectManager | |
$_assertSessionErrors = false | |
Definition at line 13 of file GaTest.php.
|
protected |
Definition at line 25 of file GaTest.php.
testBlockIsAbsentInBody | ( | ) |
Test that block has been successfully moved from body to head tag.
Definition at line 46 of file GaTest.php.
testBlockOutputExistsWhenGaIsEnabled | ( | ) |
Check, that block successfully gets rendered when configuration is active.
@magentoAppArea frontend @magentoConfigFixture current_store google/analytics/active 1 @magentoConfigFixture current_store google/analytics/account XXXXXXX
Definition at line 76 of file GaTest.php.
testBlockOutputIsEmptyWhenGaIsDisabled | ( | ) |
Test null output when GA is disabled
@magentoAppArea frontend @magentoConfigFixture current_store google/analytics/active 0 @magentoConfigFixture current_store google/analytics/account XXXXXXX
Definition at line 60 of file GaTest.php.
testBlockPresentInHead | ( | ) |
Check for correct position of GA block
Definition at line 35 of file GaTest.php.