Skip to content

Commit

Permalink
Fix mocks for Workflow 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuelsmann committed Jan 22, 2025
1 parent 0e3bd75 commit 8759af7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions t/24-workflow-action-spawnworkflow.t
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,20 @@ BEGIN {
}

use Workflow;
use Workflow::History;
use Workflow::Persister;
use LedgerSMB::Workflow::Action::SpawnWorkflow;

package TestFactory {};

my $c = Workflow::Context->new();
my $f = bless {}, 'TestFactory';
my $wf = Workflow->new( 'id', 'INITIAL', { type => 'test' }, [], $f );
my $wf2 = Workflow->new( 'id2', 'INITIAL', { type => 'test' }, [], $f );
my $wf = Workflow->new(
'id', 'INITIAL', { type => 'test',
history_class => 'Workflow::History' }, [], $f );
my $wf2 = Workflow->new(
'id2', 'INITIAL', { type => 'test',
history_class => 'Workflow::History' }, [], $f );

$wf->context( $c );

Expand Down

0 comments on commit 8759af7

Please sign in to comment.