コード例 #1
0
 public function testAddRemove()
 {
     $this->assertFalse($this->datagridMapper->has('fooName'));
     $fieldDescription = $this->getFieldDescriptionMock('fooName', 'fooLabel');
     $this->datagridMapper->add($fieldDescription, null, array('field_name' => 'fooFilterName'));
     $this->assertTrue($this->datagridMapper->has('fooName'));
     $this->datagridMapper->remove('fooName');
     $this->assertFalse($this->datagridMapper->has('fooName'));
 }