Skip to content

Commit 91e94ed

Browse files
committed
Add pull request object on dummy
1 parent 13981c8 commit 91e94ed

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

src/Component/legacy/spec/StateMachine/StateMachineSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313

1414
namespace spec\Sylius\Component\Resource\StateMachine;
1515

16-
use App\Entity\PullRequest;
1716
use PhpSpec\ObjectBehavior;
1817
use Sylius\Component\Resource\StateMachine\StateMachine;
1918
use Sylius\Component\Resource\StateMachine\StateMachineInterface as LegacyStateMachineInterface;
2019
use Sylius\Resource\StateMachine\StateMachine as NewStateMachine;
2120
use Sylius\Resource\StateMachine\StateMachineInterface;
21+
use Sylius\Resource\Tests\Dummy\PullRequest;
2222

2323
final class StateMachineSpec extends ObjectBehavior
2424
{

src/Component/spec/StateMachine/StateMachineSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313

1414
namespace spec\Sylius\Resource\StateMachine;
1515

16-
use App\Entity\PullRequest;
1716
use PhpSpec\ObjectBehavior;
1817
use Sylius\Resource\StateMachine\StateMachine;
18+
use Sylius\Resource\Tests\Dummy\PullRequest;
1919

2020
final class StateMachineSpec extends ObjectBehavior
2121
{
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Sylius package.
5+
*
6+
* (c) Sylius Sp. z o.o.
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
declare(strict_types=1);
13+
14+
namespace Sylius\Resource\Tests\Dummy;
15+
16+
class PullRequest
17+
{
18+
private string $currentPlace = 'start';
19+
20+
public function getCurrentPlace(): string
21+
{
22+
return $this->currentPlace;
23+
}
24+
25+
public function setCurrentPlace(string $currentPlace): void
26+
{
27+
$this->currentPlace = $currentPlace;
28+
}
29+
}

0 commit comments

Comments
 (0)