public function testAutoInsertDEFAULT() { $this->specify('autoInsert Status : insert the model in provided workflow', function () { $o = new Item00(); $o->attachBehavior('workflow', ['class' => SimpleWorkflowBehavior::className(), 'defaultWorkflowId' => 'Item04Workflow']); expect('model as status', $o->hasWorkflowStatus())->false(); }); }
public function testSetAutoInsertWithDefaultValue() { $this->specify('autoInsert Status : insert the model in provided workflow', function () { /** @var ActiveWorkflowBehavior|Item00 $o */ $o = new Item00(); $o->attachBehavior('workflow', ['class' => ActiveWorkflowBehavior::className(), 'defaultWorkflowId' => 'Item04Workflow']); expect('model as status', $o->hasWorkflowStatus())->false(); }); }