Example #1
0
 public function testCanCheckForFeedbackAtKey()
 {
     $formId = $this->getFormIdMock();
     $form = new Form($formId);
     $feedback = $this->getFeedbackMock('test-message', 'warning');
     $form->addFeedback('test-key', $feedback);
     $this->assertTrue($form->hasFeedbacks());
     $this->assertTrue($form->hasFeedback('test-key'));
     $this->assertFalse($form->hasFeedback('other-key'));
 }