예제 #1
0
 function testDeactivate()
 {
     $this->expectException('Hypercharge\\Errors\\ValidationError');
     $this->expect_Curl_jsonRequest()->never();
     $scheduler = Scheduler::deactivate('wrong');
 }
 function testNextForDeactivated()
 {
     $scheduler = $this->testCreate();
     $uid = $scheduler->unique_id;
     $this->mockV2Url(array('scheduler', $uid));
     $s = Scheduler::deactivate($uid);
     $this->mockV2Url(array('scheduler', $uid, 'next'));
     $date = Scheduler::next($uid);
     $this->assertIdentical(null, $date);
 }