$this->assertTrue($compoundValue[$field_child1->get_id()]instanceof\Tainacan\Entities\Item_Metadata_Entity,'First element of value should be an item metadata entity');
$this->assertTrue($compoundValue[$field_child2->get_id()]instanceof\Tainacan\Entities\Item_Metadata_Entity,'Second element of value should be an item metadata entity');
//var_dump($wpdb->get_results("SELECT * FROM $wpdb->postmeta WHERE post_id = {$i->get_id()}"));
//var_dump($wpdb->get_results("SELECT * FROM $wpdb->posts WHERE parent = {$field->get_id()}"));
$compoundValue=$compoundItem->get_value();
$this->assertTrue(is_array($compoundValue),'value of a compound should return array');
$this->assertEquals(2,sizeof($compoundValue),'value should have 2 values');
$this->assertTrue(is_array($compoundValue[0]),'value of a compound should return array');
$this->assertTrue(is_array($compoundValue[1]),'value of a compound should return array');
$this->assertTrue(isset($compoundValue[0][$field_child1->get_id()]),'First element of value must be set');
$this->assertTrue(isset($compoundValue[1][$field_child2->get_id()]),'Second element of value must be set');
$this->assertTrue($compoundValue[0][$field_child1->get_id()]instanceof\Tainacan\Entities\Item_Metadata_Entity,'First element of value should be an item metadata entity');
$this->assertTrue($compoundValue[1][$field_child2->get_id()]instanceof\Tainacan\Entities\Item_Metadata_Entity,'Second element of value should be an item metadata entity');
$this->assertEquals('Red',$compoundValue[0][$field_child1->get_id()]->get_value(),'First element of value should have "Red" value');
$this->assertEquals('Blue',$compoundValue[0][$field_child2->get_id()]->get_value(),'Second element of value should have "Blue" value');
$this->assertEquals('Green',$compoundValue[1][$field_child1->get_id()]->get_value(),'First element of value should have "Red" value');
$this->assertEquals('Yellow',$compoundValue[1][$field_child2->get_id()]->get_value(),'Second element of value should have "Blue" value');