/** * testCreateDisabled method * * @expectedException BadMethodCallException */ public function testCreateDisabled() { $m2x = $this->generateMockM2X(); $m2x->request->expects($this->never())->method('request'); $job = Job::create($m2x, array('title' => 'bar')); }
/** * Retrieve a single job from the API. * * This method instantiates an instance of Job with all its attributes initialized. * * @link https://m2x.att.com/developer/documentation/v2/jobs#View-Job-Details * * @param string $id * @return Job */ public function job($id) { return Job::get($this, $id); }