public function testCheckLeaveBroughtForward()
 {
     $broughtForward = new LeaveQuota();
     $year = date('Y') - 1;
     $this->assertTrue($broughtForward->checkBroughtForward($year));
 }
Ejemplo n.º 2
0
 private function _validToCopyBroughtForwardFromLastYear()
 {
     if ($_SESSION['isAdmin'] !== 'Yes') {
         return false;
     }
     $broughtForward = new LeaveQuota();
     if ($broughtForward->checkBroughtForward(date('Y') - 1) && !Config::getLeaveBroughtForward(date('Y'))) {
         return true;
     } else {
         return false;
     }
 }