function testSelectOptionsAddRemove() { $table = new TableListField("Tester", "TableListFieldTest_Obj", array("A" => "Col A")); $this->assertNull($table->SelectOptions(), 'Empty by default'); $table->addSelectOptions(array("F" => "FieldF", 'G' => 'FieldG')); $this->assertEquals($table->SelectOptions()->map('Key', 'Value'), array("F" => "FieldF", 'G' => 'FieldG')); $table->removeSelectOptions(array("F")); $this->assertEquals($table->SelectOptions()->map('Key', 'Value'), array("G" => "FieldG")); }