About 61 results: "mysql_query repo:wildanm/orangehrm"
Page 2 of 4
Filter Results
Sources
Languages
Filter Results
Try Search On





HspPayPeriodTest.php in orangehrm https://bitbucket.org/wildanm/orangehrm | 218 lines | PHP
  1. 
                        
  2. 		$this->assertTrue(mysql_query("TRUNCATE TABLE `hs_hr_pay_period`", $this->connection));
  3. 
                        
  4.         $this->assertTrue(mysql_query("INSERT INTO hs_hr_pay_period (id, start_date, end_date, close_date, check_date, timesheet_aproval_due_date) " .
  5.         // For testGetYears()
  6.         $this->assertTrue(mysql_query("INSERT INTO hs_hr_pay_period (id, start_date, end_date, close_date, check_date, timesheet_aproval_due_date) VALUES(45, '".(date('Y')+20)."-01-01', '".(date('Y')+20)."-01-15', '".(date('Y')+20)."-01-15', '".(date('Y')+20)."-01-16', '".(date('Y')+20)."-01-17')"));
  7.     protected function tearDown() {
  8.     	$this->assertTrue(mysql_query("TRUNCATE TABLE `hs_hr_pay_period`", $this->connection));
  9. 
                        
  10. 		$this->assertTrue(mysql_query("TRUNCATE TABLE `hs_hr_pay_period`"));
  11. 
                        
  12. 		$this->assertTrue(mysql_query("INSERT INTO hs_hr_pay_period VALUES(1, '$previousYear-12-01', '$previousYear-12-31', '$previousYear-12-31', '$previousYear-12-25', '$previousYear-12-20')"));
  13. 		$this->assertTrue(mysql_query("INSERT INTO hs_hr_pay_period VALUES(2, '$thisYear-01-01', '$thisYear-01-31', '$thisYear-01-31', '$thisYear-01-25', '$thisYear-01-20')"));
  14. 		$this->assertTrue(mysql_query("INSERT INTO hs_hr_pay_period VALUES(3, '$thisYear-02-01', '$thisYear-02-29', '$thisYear-02-29', '$thisYear-02-25', '$thisYear-02-20')"));
  15. 		$this->assertTrue(mysql_query("INSERT INTO hs_hr_pay_period VALUES(4, '$thisYear-03-01', '$thisYear-03-31', '$thisYear-03-31', '$thisYear-03-25', '$thisYear-03-20')"));
  16. 
                        















Back to Top