public function testSubscribedEvents() { $result = TagSubscriber::getSubscribedEvents(); $this->assertArrayHasKey(FormEvents::PRE_SET_DATA, $result); $this->assertArrayHasKey(FormEvents::PRE_SUBMIT, $result); $this->assertEquals('preSet', $result[FormEvents::PRE_SET_DATA]); $this->assertEquals('preSubmit', $result[FormEvents::PRE_SUBMIT]); }
/** * {@inheritdoc} */ public static function getSubscribedEvents() { return array_merge(parent::getSubscribedEvents(), [FormEvents::POST_SUBMIT => 'postSubmit']); }