Esempio n. 1
0
 public function testbuild_report_html()
 {
     $aor_Report = new AOR_Report();
     $aor_Report->report_module = 'Accounts';
     //execute the method without any parameters and verify it returns html string
     $html1 = $aor_Report->build_report_html();
     $this->assertGreaterThan(0, strlen($html1));
     //execute the method with both parameters and verify it returns html string
     $html2 = $aor_Report->build_report_html(0, false);
     $this->assertGreaterThan(0, strlen($html2));
     //execute the method with group and identifier parameters and verify it returns html string
     $html3 = $aor_Report->build_report_html(1, false, 'grouptest', 'testidentifier');
     $this->assertGreaterThan(0, strlen($html3));
     //verify that group and identifier exist in the strings
     $this->assertContains('grouptest', $html3);
     $this->assertContains('testidentifier', $html3);
 }