Exemplo n.º 1
0
 public function testbuild_group_report()
 {
     $aor_Report = new AOR_Report();
     $aor_Report->report_module = 'Accounts';
     $aor_Report->id = '1';
     //execute the method without any parameters and verify it returns html string
     $html1 = $aor_Report->build_group_report();
     $this->assertGreaterThan(0, strlen($html1));
     //execute the method wit offset parameter and verify it returns html string
     $html2 = $aor_Report->build_group_report(1);
     $this->assertGreaterThan(0, strlen($html2));
     //execute the method with both parameters and verify it returns html string
     $html3 = $aor_Report->build_group_report(0, false);
     $this->assertGreaterThan(0, strlen($html3));
     //verify that all three html strings are different.
     $this->assertNotEquals($html1, $html2);
     $this->assertNotEquals($html1, $html3);
     $this->assertNotEquals($html2, $html3);
 }