Definition at line 12 of file DocBlockTest.php.
◆ _expectNoListenerCreation()
_expectNoListenerCreation |
( |
|
$listenerClass, |
|
|
|
$expectedExceptionMsg |
|
) |
| |
|
protected |
Setup expectation of inability to instantiate an event listener without passing the event manager instance
- Parameters
-
string | $listenerClass | |
string | $expectedExceptionMsg | |
Definition at line 42 of file DocBlockTest.php.
46 $this->fail(
"Inability to instantiate the event listener '{$listenerClass}' is expected.");
47 }
catch (\
Magento\Framework\Exception\LocalizedException $e) {
48 $this->assertEquals($expectedExceptionMsg, $e->getMessage());
◆ setUp()
Definition at line 24 of file DocBlockTest.php.
26 $this->_object = new \Magento\TestFramework\Bootstrap\DocBlock(
__DIR__);
27 $this->_application = $this->createMock(\
Magento\TestFramework\Application::class);
defined('TESTS_BP')||define('TESTS_BP' __DIR__
◆ tearDown()
Definition at line 30 of file DocBlockTest.php.
32 $this->_object =
null;
33 $this->_application =
null;
◆ testRegisterAnnotations()
testRegisterAnnotations |
( |
| ) |
|
Definition at line 52 of file DocBlockTest.php.
55 \
Magento\TestFramework\Event\PhpUnit::class,
56 'Instance of the event manager is required.' 59 \
Magento\TestFramework\Event\Magento::class,
60 'Instance of the "Magento\TestFramework\EventManager" is expected.' 62 $this->_object->registerAnnotations($this->_application);
63 new \Magento\TestFramework\Event\PhpUnit();
64 new \Magento\TestFramework\Event\Magento();
_expectNoListenerCreation($listenerClass, $expectedExceptionMsg)
◆ $_application
◆ $_object
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/integration/framework/tests/unit/testsuite/Magento/Test/Bootstrap/DocBlockTest.php