public function testAddRemove() { $this->assertFalse($this->listMapper->has('fooName')); $fieldDescription = $this->getFieldDescriptionMock('fooName', 'fooLabel'); $this->listMapper->add($fieldDescription); $this->assertTrue($this->listMapper->has('fooName')); $this->listMapper->remove('fooName'); $this->assertFalse($this->listMapper->has('fooName')); }