Inheritance: implements fproject\workflow\core\IStatusAccessor
Esempio n. 1
0
 protected function setup()
 {
     parent::setUp();
     Yii::$app->set('workflowFactory', ['class' => 'fproject\\workflow\\core\\ArrayWorkflowItemFactory', 'workflowSourceNamespace' => 'tests\\codeception\\unit\\models']);
     Yii::$app->set('status_accessor', ['class' => 'tests\\codeception\\unit\\models\\StatusAccessor07']);
     $this->statusAccessor = Yii::$app->get('status_accessor');
     $this->statusAccessor->resetCallCounters();
     StatusAccessor07::$instanceCount = 1;
 }
 protected function setup()
 {
     parent::setUp();
     Yii::$app->set('workflowSource', ['class' => 'raoul2000\\workflow\\source\\file\\WorkflowFileSource', 'definitionLoader' => ['class' => 'raoul2000\\workflow\\source\\file\\PhpClassLoader', 'namespace' => 'tests\\codeception\\unit\\models']]);
     Yii::$app->set('status_accessor', ['class' => 'tests\\codeception\\unit\\models\\StatusAccessor07']);
     $this->statusAccessor = Yii::$app->get('status_accessor');
     $this->statusAccessor->resetCallCounters();
     StatusAccessor07::$instanceCount = 1;
 }