public function testRender() { $form = new Form(); $tags = $form->addTags('tags')->setDefaultValue(NULL); $this->assertStringEqualsFile(E::dumpedFile('tagsNull'), $tags->getControl()); $tags = $form->addTags('tagsTwo')->setDefaultValue(array('tag', 'one', 'two')); $this->assertStringEqualsFile(E::dumpedFile('tagsRender'), $tags->getControl()); }
public function testRender() { $form = new Form(); $tags = $form->addTags('tags')->setDefaultValue(NULL); $this->assertStringEqualsFile(__DIR__ . '/expected/tagsNull.dmp', $tags->getControl()); $tags = $form->addTags('tagsTwo')->setDefaultValue(['tag', 'one', 'two']); $this->assertStringEqualsFile(__DIR__ . '/expected/tagsRender.dmp', $tags->getControl()); }