public function testGetDisplayLabel() { $displayAttribute = new DisplayAttributeForReportForm('ReportsTestModule', 'ReportModelTestItem', Report::TYPE_SUMMATION); $displayAttribute->attributeIndexOrDerivedType = 'string'; $this->assertEquals('String', $displayAttribute->getDisplayLabel()); $displayAttribute->attributeIndexOrDerivedType = 'hasOne___name'; $this->assertEquals('ReportModelTestItem2 >> Name', $displayAttribute->getDisplayLabel()); $displayAttribute->attributeIndexOrDerivedType = 'hasMany___name'; $this->assertEquals('ReportModelTestItem3s >> Name', $displayAttribute->getDisplayLabel()); $displayAttribute->attributeIndexOrDerivedType = 'primaryAddress___street1'; $this->assertEquals('Primary Address >> Street 1', $displayAttribute->getDisplayLabel()); }