mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
fix test for custom field helper
The test was requesting an entity not present in database
This commit is contained in:
parent
546fe49960
commit
8849d8bb54
@ -52,11 +52,13 @@ class CustomFieldsHelperTest extends KernelTestCase
|
||||
|
||||
$this->cfHelper = $container->get('chill.custom_field.helper');
|
||||
|
||||
$cfieldsText = $container->get('doctrine.orm.entity_manager')
|
||||
->getRepository('ChillCustomFieldsBundle:CustomField')
|
||||
->findBy(array('type' => 'text'))
|
||||
;
|
||||
$this->randomCFText = end($cfieldsText);
|
||||
$this->randomCFText = (new CustomField())
|
||||
->setSlug('my-slug')
|
||||
->setActive(true)
|
||||
->setName(array('fr' => 'my cf'))
|
||||
->setOptions(array('maxLength' => 1000))
|
||||
->setType('text')
|
||||
;
|
||||
}
|
||||
|
||||
public function testRenderCustomField()
|
||||
|
Loading…
x
Reference in New Issue
Block a user