예제 #1
0
파일: JobTest.php 프로젝트: attm2x/m2x-php
 /**
  * testCreateDisabled method
  *
  * @expectedException BadMethodCallException
  */
 public function testCreateDisabled()
 {
     $m2x = $this->generateMockM2X();
     $m2x->request->expects($this->never())->method('request');
     $job = Job::create($m2x, array('title' => 'bar'));
 }
예제 #2
0
파일: M2X.php 프로젝트: attm2x/m2x-php
 /**
  * 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);
 }