mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
27 lines
579 B
PHP
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();
|
|
}
|