示例#1
0
 /**
  * @test
  */
 public function shouldMarkUnknownIfStatusCouldBeGuessed()
 {
     $action = new StatusAction();
     $model = array('status' => 'unknown');
     $status = new GetHumanStatus($model);
     $status->markPending();
     $action->execute($status);
     $this->assertTrue($status->isUnknown());
 }
示例#2
0
 /**
  * @test
  */
 public function shouldMarkUnknownIfStatusCouldBeGuessed()
 {
     $action = new StatusAction();
     $model = array('card' => array('foo'), 'captured' => false, 'paid' => true);
     $status = new GetHumanStatus($model);
     $status->markPending();
     $action->execute($status);
     $this->assertTrue($status->isUnknown());
 }