public function FactoryMapperTest::testNoneExistingHook in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 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);
}