public function FactoryMapperTest::testNoneExistingHook in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/preprocess_event_dispatcher/tests/src/Unit/FactoryMapperTest.php \Drupal\Tests\preprocess_event_dispatcher\Unit\FactoryMapperTest::testNoneExistingHook()
Test a none existing hook.
File
- modules/
preprocess_event_dispatcher/ tests/ src/ Unit/ FactoryMapperTest.php, line 81
Class
- FactoryMapperTest
- Class FactoryMapperTest.
Namespace
Drupal\Tests\preprocess_event_dispatcher\UnitCode
public function testNoneExistingHook() : void {
$factory = $this->mapper
->getFactory('NoneExistingHook');
self::assertNull($factory);
}