/** * Test invalid queue file * * @expectedException /RuntimeException * @expectedExceptionMessage RuntimeException: Missing job params "params" field is missing for one or more jobs */ public function testInvalidQueue() { file_put_contents(MAGENTO_BP . '/var/.update_queue.json', '{ "jobs": [ { "name": "backup" } ], "ignored_field": "" }'); shell_exec('php -f ' . $this->cronScript); $jobStatus = $this->status->get(); $this->assertContains('"params" field is missing for one or more jobs', $jobStatus); }