Files
Phraseanet/tests/Alchemy/Tests/Phrasea/Form/FormTestCase.php
Romain Neutron 5e6d506d8d Add forms
2013-05-29 14:23:17 +02:00

27 lines
591 B
PHP

<?php
namespace Alchemy\Tests\Phrasea\Form;
abstract class FormTestCase extends \PhraseanetPHPUnitAbstract
{
public function testBuildForm()
{
$form = $this->getForm();
$builder = $this
->getMockBuilder('Symfony\Component\Form\FormBuilder')
->disableOriginalConstructor()
->getMock();
$form->buildForm($builder, array('disabled' => false));
}
public function testGetName()
{
$form = $this->getForm();
$this->assertNull($form->getName());
}
abstract protected function getForm();
}