function testGetValues() { $field = new CMB_Text_Field('foo', 'Title', array(1, 2)); $this->assertEquals($field->get_values(), array(1, 2)); $field = new CMB_Text_Field('foo', 'Title', array(1, 2), array('repeatable' => true)); $this->assertEquals($field->get_values(), array(1, 2)); }
function testGetValues() { // Single Value $field = new CMB_Text_Field('foo', 'Title', array(1)); $this->assertEquals($field->get_values(), array(1)); // Multiple Values - eg repeatable. $field = new CMB_Text_Field('foo', 'Title', array(1, 2), array('repeatable' => true)); $this->assertEquals($field->get_values(), array(1, 2)); }