public function testGetHookIdWithUnknownName() { $this->setExpectedException("\\Centreon\\Internal\\Exception", "Could not find hook named idontexist"); Hook::getHookId('idontexist'); }