Skip to content

Commit 5a596d2

Browse files
zerodaherogithub-actions[bot]
authored andcommitted
Fix styling
1 parent 13a4c93 commit 5a596d2

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

tests/WorkflowDumpCommandTest.php

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace Tests;
44

55
use Mockery;
6-
use Illuminate\Support\Facades\Storage;
76
use Mockery\MockInterface;
7+
use Illuminate\Support\Facades\Storage;
88
use ZeroDaHero\LaravelWorkflow\Commands\WorkflowDumpCommand;
99

1010
class WorkflowDumpCommandTest extends BaseWorkflowTestCase
@@ -34,7 +34,7 @@ public function testShouldThrowExceptionForUndefinedClass()
3434
public function testWorkflowCommand()
3535
{
3636
$optionalPath = '/my/path';
37-
$disk = 'public';
37+
$disk = 'public';
3838

3939
Storage::fake($disk);
4040

@@ -88,6 +88,35 @@ public function testWorkflowCommandWithoutMetadata()
8888
$this->assertStringNotContainsString('metadata_exists', $svg_file);
8989
}
9090

91+
protected function getEnvironmentSetUp($app)
92+
{
93+
$app['config']['workflow'] = [
94+
'straight' => [
95+
'supports' => ['Tests\Fixtures\TestObject'],
96+
'places' => [
97+
'a',
98+
'b',
99+
'c',
100+
'metadata_place' => [
101+
'metadata' => [
102+
'metadata_exists' => true,
103+
],
104+
],
105+
],
106+
'transitions' => [
107+
't1' => [
108+
'from' => 'a',
109+
'to' => 'b',
110+
],
111+
't2' => [
112+
'from' => 'b',
113+
'to' => 'c',
114+
],
115+
],
116+
],
117+
];
118+
}
119+
91120
private function getMock(
92121
string $workflow = 'straight',
93122
string $format = 'png',
@@ -118,33 +147,4 @@ private function getMock(
118147
->andReturn($withMetadata)
119148
->getMock();
120149
}
121-
122-
protected function getEnvironmentSetUp($app)
123-
{
124-
$app['config']['workflow'] = [
125-
'straight' => [
126-
'supports' => ['Tests\Fixtures\TestObject'],
127-
'places' => [
128-
'a',
129-
'b',
130-
'c',
131-
'metadata_place' => [
132-
'metadata' => [
133-
'metadata_exists' => true,
134-
],
135-
],
136-
],
137-
'transitions' => [
138-
't1' => [
139-
'from' => 'a',
140-
'to' => 'b',
141-
],
142-
't2' => [
143-
'from' => 'b',
144-
'to' => 'c',
145-
],
146-
],
147-
],
148-
];
149-
}
150150
}

0 commit comments

Comments
 (0)