Skip to content

Commit 4b2a203

Browse files
committed
Fix test classes name
1 parent fe97374 commit 4b2a203

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/WorkflowRegistry.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function __construct(array $config)
5656
$workflow = $this->getWorkflowInstance($name, $workflowData, $definition, $markingStore);
5757

5858
foreach ($workflowData['supports'] as $supportedClass) {
59-
$this->registry->add($workflow, new ClassInstanceSupportStrategy($supportedClass));
59+
$this->add($workflow, $supportedClass);
6060
}
6161
}
6262
}
@@ -79,7 +79,7 @@ public function get($subject, $workflowName = null)
7979
*/
8080
public function add(Workflow $workflow, $supportStrategy)
8181
{
82-
return $this->registry->add($workflow, $supportStrategy);
82+
return $this->registry->add($workflow, new ClassInstanceSupportStrategy($supportStrategy));
8383
}
8484

8585
/**

tests/WorkflowDumpCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Mockery;
66
use PHPUnit\Framework\TestCase;
77

8-
class WorkflowRegistryTest extends TestCase
8+
class WorkflowDumpCommandTest extends TestCase
99
{
1010
public function testWorkflowCommand()
1111
{

tests/WorkflowSubscriberTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Brexis\LaravelWorkflow\WorkflowRegistry;
66
use Tests\Fixtures\TestObject;
77

8-
class WorkflowRegistryTest extends TestCase
8+
class WorkflowSubscriberTest extends TestCase
99
{
1010
public function testIfWorkflowIsRegisrter()
1111
{

0 commit comments

Comments
 (0)