mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Refactor caption_field
This commit is contained in:
@@ -384,7 +384,13 @@ class record_adapterTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
||||
|
||||
if ($meta_el->is_multi())
|
||||
{
|
||||
$this->assertEquals($multi_imploded, implode(' ' . $meta_el->get_separator() . ' ', $field->get_value(false)));
|
||||
$initial_values = array();
|
||||
foreach($field->get_values() as $value)
|
||||
{
|
||||
$initial_values[] = $value->getValue();
|
||||
}
|
||||
|
||||
$this->assertEquals($multi_imploded, implode(' ' . $meta_el->get_separator() . ' ', $initial_values));
|
||||
$this->assertEquals($multi_imploded, $field->get_serialized_values());
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user