Definition at line 8 of file FactoryTest.php.
◆ testGetHelper()
Definition at line 10 of file FactoryTest.php.
16 $this->assertSame(
$helper, $helperNew,
'Factory must cache instances of helpers.');
◆ testSetHelper()
Definition at line 19 of file FactoryTest.php.
24 $this->assertSame(
$helper, $helperGot,
'The helper must be used, when requested again');
26 $helperNew = new \stdClass();
29 $this->assertSame($helperNew, $helperGot,
'The helper must be changed upon new setHelper() method');
static setHelper($name, $helper)
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/integration/framework/tests/unit/testsuite/Magento/Test/Helper/FactoryTest.php