Files
Phraseanet/tests/Alchemy/Tests/Phrasea/Form/FormTestCase.php
2013-12-10 01:29:02 +01:00

27 lines
579 B
PHP

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