/** * Mark element as valid. * * @return void */ public function setValid() { $this->node->removeAttribute('data-invalid'); }
function it_should_mark_as_unchecked_element(NodeInterface $node) { $node->removeAttribute('checked')->shouldBeCalled(); $this->setUnchecked()->shouldBe($this); }
function it_should_set_element_as_valid(NodeInterface $node) { $node->removeAttribute('data-invalid')->shouldBeCalled(); $this->setValid(); }
function it_should_mark_as_unchecked_element(NodeInterface $node) { $node->removeAttribute('checked')->shouldBeCalled(); $this->setUnchecked()->shouldHaveType('DeForm\\Element\\CheckboxElement'); }