Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
setMockLoggingUtil () | |
validateMockLogStatement ($type, $message, $context) | |
validateMockLogStatmentRegex ($type, $regex, $context) | |
clearMockLoggingUtil () | |
Static Public Member Functions | |
static | getInstance () |
Definition at line 16 of file TestLoggingUtil.php.
clearMockLoggingUtil | ( | ) |
Function which clears the test logger context from the LogginUtil class. Should be run after a test class has executed.
Definition at line 101 of file TestLoggingUtil.php.
|
static |
Static singleton get function
Definition at line 41 of file TestLoggingUtil.php.
setMockLoggingUtil | ( | ) |
Function which sets a mock instance of the logger for testing purposes.
Definition at line 55 of file TestLoggingUtil.php.
validateMockLogStatement | ( | $type, | |
$message, | |||
$context | |||
) |
Function which validates messages have been logged as intended during test execution.
string | $type | |
string | $message | |
array | $context |
Definition at line 77 of file TestLoggingUtil.php.
validateMockLogStatmentRegex | ( | $type, | |
$regex, | |||
$context | |||
) |
Definition at line 86 of file TestLoggingUtil.php.