mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +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');
|
$this->cfHelper = $container->get('chill.custom_field.helper');
|
||||||
|
|
||||||
$cfieldsText = $container->get('doctrine.orm.entity_manager')
|
$this->randomCFText = (new CustomField())
|
||||||
->getRepository('ChillCustomFieldsBundle:CustomField')
|
->setSlug('my-slug')
|
||||||
->findBy(array('type' => 'text'))
|
->setActive(true)
|
||||||
;
|
->setName(array('fr' => 'my cf'))
|
||||||
$this->randomCFText = end($cfieldsText);
|
->setOptions(array('maxLength' => 1000))
|
||||||
|
->setType('text')
|
||||||
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testRenderCustomField()
|
public function testRenderCustomField()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user