Code Duplication    Length = 16-17 lines in 3 locations

src/Kreta/TaskManager/Tests/Spec/Kreta/TaskManager/Application/Project/Task/ChangeTaskPriorityCommandSpec.php 1 location

@@ 18-33 (lines=16) @@
15
use Kreta\TaskManager\Application\Project\Task\ChangeTaskPriorityCommand;
16
use PhpSpec\ObjectBehavior;
17
18
class ChangeTaskPriorityCommandSpec extends ObjectBehavior
19
{
20
    function let()
21
    {
22
        $this->beConstructedWith('task-id', 'low', 'editor-id');
23
    }
24
25
    function it_can_be_created()
26
    {
27
        $this->shouldHaveType(ChangeTaskPriorityCommand::class);
28
29
        $this->id()->shouldReturn('task-id');
30
        $this->priority()->shouldReturn('low');
31
        $this->editorId()->shouldReturn('editor-id');
32
    }
33
}
34

src/Kreta/TaskManager/Tests/Spec/Kreta/TaskManager/Application/Project/Task/EditTaskCommandSpec.php 1 location

@@ 18-34 (lines=17) @@
15
use Kreta\TaskManager\Application\Project\Task\EditTaskCommand;
16
use PhpSpec\ObjectBehavior;
17
18
class EditTaskCommandSpec extends ObjectBehavior
19
{
20
    function it_can_be_edited_with_basic_info()
21
    {
22
        $this->beConstructedWith(
23
            'task-id',
24
            'title',
25
            'description',
26
            'editor-id'
27
        );
28
        $this->shouldHaveType(EditTaskCommand::class);
29
        $this->id()->shouldReturn('task-id');
30
        $this->title()->shouldReturn('title');
31
        $this->description()->shouldReturn('description');
32
        $this->editorId()->shouldReturn('editor-id');
33
    }
34
}
35

src/Kreta/TaskManager/Tests/Spec/Kreta/TaskManager/Application/Project/Task/ChangeTaskProgressCommandSpec.php 1 location

@@ 18-33 (lines=16) @@
15
use Kreta\TaskManager\Application\Project\Task\ChangeTaskProgressCommand;
16
use PhpSpec\ObjectBehavior;
17
18
class ChangeTaskProgressCommandSpec extends ObjectBehavior
19
{
20
    function let()
21
    {
22
        $this->beConstructedWith('task-id', 'doing', 'editor-id');
23
    }
24
25
    function it_is_initializable()
26
    {
27
        $this->shouldHaveType(ChangeTaskProgressCommand::class);
28
29
        $this->id()->shouldReturn('task-id');
30
        $this->progress()->shouldReturn('doing');
31
        $this->editorId()->shouldReturn('editor-id');
32
    }
33
}
34