Ejemplo n.º 1
0
 /**
  * testCreateDisabled method
  *
  * @expectedException BadMethodCallException
  */
 public function testCreateDisabled()
 {
     $m2x = $this->generateMockM2X();
     $m2x->request->expects($this->never())->method('request');
     $job = Job::create($m2x, array('title' => 'bar'));
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }