Code Duplication    Length = 10-11 lines in 4 locations

TaskManager/tests/Spec/Kreta/TaskManager/Application/Query/Project/Task/CountTasksQuerySpec.php 4 locations

@@ 33-42 (lines=10) @@
30
        $this->progress()->shouldReturn(null);
31
    }
32
33
    function it_can_be_created_with_title()
34
    {
35
        $this->beConstructedWith('user-id', null, null, 'Task title');
36
        $this->shouldHaveType(CountTasksQuery::class);
37
        $this->userId()->shouldReturn('user-id');
38
        $this->title()->shouldReturn('Task title');
39
        $this->parentId()->shouldReturn(null);
40
        $this->priority()->shouldReturn(null);
41
        $this->progress()->shouldReturn(null);
42
    }
43
44
    function it_can_be_created_with_priority()
45
    {
@@ 44-53 (lines=10) @@
41
        $this->progress()->shouldReturn(null);
42
    }
43
44
    function it_can_be_created_with_priority()
45
    {
46
        $this->beConstructedWith('user-id', null, null, null, 'low');
47
        $this->shouldHaveType(CountTasksQuery::class);
48
        $this->userId()->shouldReturn('user-id');
49
        $this->title()->shouldReturn(null);
50
        $this->parentId()->shouldReturn(null);
51
        $this->priority()->shouldReturn('low');
52
        $this->progress()->shouldReturn(null);
53
    }
54
55
    function it_can_be_created_with_progress()
56
    {
@@ 55-64 (lines=10) @@
52
        $this->progress()->shouldReturn(null);
53
    }
54
55
    function it_can_be_created_with_progress()
56
    {
57
        $this->beConstructedWith('user-id', null, null, null, null, 'todo');
58
        $this->shouldHaveType(CountTasksQuery::class);
59
        $this->userId()->shouldReturn('user-id');
60
        $this->title()->shouldReturn(null);
61
        $this->parentId()->shouldReturn(null);
62
        $this->priority()->shouldReturn(null);
63
        $this->progress()->shouldReturn('todo');
64
    }
65
66
    function it_can_be_created_with_parent_id()
67
    {
@@ 77-87 (lines=11) @@
74
        $this->progress()->shouldReturn(null);
75
    }
76
77
    function it_can_be_created_with_project_id()
78
    {
79
        $this->beConstructedWith('user-id', null, 'project-id');
80
        $this->shouldHaveType(CountTasksQuery::class);
81
        $this->userId()->shouldReturn('user-id');
82
        $this->title()->shouldReturn(null);
83
        $this->parentId()->shouldReturn(null);
84
        $this->projectId()->shouldReturn('project-id');
85
        $this->priority()->shouldReturn(null);
86
        $this->progress()->shouldReturn(null);
87
    }
88
}
89