/** * @test */ public function shouldMarkUnknownIfStatusCouldBeGuessed() { $action = new StatusAction(); $model = array('status' => 'unknown'); $status = new GetHumanStatus($model); $status->markPending(); $action->execute($status); $this->assertTrue($status->isUnknown()); }
/** * @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()); }