TripalJobsApiTest.php 448 B

1234567891011121314151617181920
  1. <?php
  2. use StatonLab\TripalTestSuite\DBTransaction;
  3. use StatonLab\TripalTestSuite\TripalTestCase;
  4. class TripalJobsApiTest extends TripalTestCase {
  5. use DBTransaction;
  6. /**
  7. * Tests the ability to create a tripal job.
  8. *
  9. * @test
  10. */
  11. public function should_create_a_tripal_job() {
  12. $job_id = tripal_add_job('Test adding jobs', 'tripal', 'tripal_tripal_cron_notification', [], 1);
  13. $this->assertTrue(is_numeric($job_id));
  14. }
  15. }