public function testValidateDrillDownDisplayAttributesForErrors() { $summationReportWizardForm = new SummationReportWizardForm(); $drillDownDisplayAttributes = new DrillDownDisplayAttributeForReportForm('ReportsTestModule', 'ReportModelTestItem', Report::TYPE_SUMMATION); $summationReportWizardForm->drillDownDisplayAttributes = array($drillDownDisplayAttributes); $content = $summationReportWizardForm->validateDrillDownDisplayAttributes(); $errors = $drillDownDisplayAttributes->getErrors(); $compareErrors = array('label' => array('Label cannot be blank.')); $this->assertEquals($compareErrors, $errors); $this->assertTrue($summationReportWizardForm->hasErrors()); }