/**
  * @depends testConstructWithAttr
  *
  * @param MemberEntity $entity
  */
 public function testGetVisibleName($entity)
 {
     $this->assertNull($entity->getDisplayName());
     $entity->name1 = 'name1';
     $entity->name2 = 'name2';
     $entity->name3 = 'name3';
     MemberEntity::$displayField = 'name1';
     $this->assertEquals('name1', $entity->getDisplayName());
     MemberEntity::$displayField = 'name2';
     $this->assertEquals('name2', $entity->getDisplayName());
     MemberEntity::$displayField = 'name3';
     $this->assertEquals('name3', $entity->getDisplayName());
 }