public function testGetGroupLabelsAsString() { $entity = new Contact(); $this->assertEquals('', $entity->getGroupLabelsAsString()); $entity->addGroup(new Group('Group One')); $this->assertEquals('Group One', $entity->getGroupLabelsAsString()); $entity->addGroup(new Group('Group Two')); $this->assertEquals('Group One, Group Two', $entity->getGroupLabelsAsString()); }