/**
  * Checks getJobs() functionality - whether it gets all Jobs present on the server.
  */
 public function testJobSummary_allCurrentJobs()
 {
     $jobsBefore = $this->jc->getJobs();
     $folder = JasperTestUtils::createFolder();
     $this->jc->putResource('', $folder);
     $jobId[] = $this->jc->putJob(JasperTestUtils::createJob($folder));
     $jobId[] = $this->jc->putJob(JasperTestUtils::createJob($folder));
     $jobsAfter = $this->jc->getJobs();
     // Cleanup
     foreach ($jobId as &$id) {
         $this->jc->deleteJob($id);
     }
     $this->jc->deleteResource($folder->getUriString());
     $this->assertEquals(count($jobsBefore) + 2, count($jobsAfter));
 }