public function testGetGroupLabels() { $entity = new Contact(); $this->assertEquals(array(), $entity->getGroupLabels()); $groupOne = new Group('Group One'); $entity->addGroup($groupOne); $this->assertEquals(array('Group One'), $entity->getGroupLabels()); $groupTwo = new Group('Group Two'); $entity->addGroup($groupTwo); $this->assertEquals(array('Group One', 'Group Two'), $entity->getGroupLabels()); $entity->removeGroup($groupOne); $this->assertEquals(array('Group Two'), $entity->getGroupLabels()); }