public function testGetsColumnsWithResourceTypeCustomAttributes() { $attributes = $this->attributeRepository->_CustomAttributes; $rows = array(array(ColumnNames::ACCESSORY_NAME => 'an', 'unknown' => 'unknown', ColumnNames::RESOURCE_TYPE_ATTRIBUTE_LIST => '1=1!sep!2=!sep!3=')); $report = new CustomReport($rows, $this->attributeRepository); $definition = new ReportDefinition($report, null); $headerKeys = $definition->GetColumnHeaders(); $this->assertEquals(3, count($headerKeys)); $this->assertEquals('test attribute', $headerKeys['attribute1']->Title()); $this->assertEquals('test attribute2', $headerKeys['attribute2']->Title()); }