Code Duplication    Length = 9-12 lines in 7 locations

eZ/Publish/Core/MVC/Symfony/Matcher/Tests/ContentBased/Identifier/ContentTypeTest.php 1 location

@@ 110-121 (lines=12) @@
107
     * @param \eZ\Publish\API\Repository\Repository $repository
108
     * @param bool $expectedResult
109
     */
110
    public function testMatchContentInfo($matchingConfig, Repository $repository, $expectedResult)
111
    {
112
        $this->matcher->setRepository($repository);
113
        $this->matcher->setMatchingConfig($matchingConfig);
114
115
        $this->assertSame(
116
            $expectedResult,
117
            $this->matcher->matchContentInfo(
118
                $this->getContentInfoMock(['contentTypeId' => 42])
119
            )
120
        );
121
    }
122
123
    public function matchContentInfoProvider()
124
    {

eZ/Publish/Core/MVC/Symfony/Matcher/Tests/ContentBased/DepthTest.php 1 location

@@ 90-98 (lines=9) @@
87
     * @param \eZ\Publish\API\Repository\Repository $repository
88
     * @param bool $expectedResult
89
     */
90
    public function testMatchContentInfo($matchingConfig, Repository $repository, $expectedResult)
91
    {
92
        $this->matcher->setRepository($repository);
93
        $this->matcher->setMatchingConfig($matchingConfig);
94
        $this->assertSame(
95
            $expectedResult,
96
            $this->matcher->matchContentInfo($this->getContentInfoMock(['mainLocationId' => 42]))
97
        );
98
    }
99
100
    public function matchContentInfoProvider()
101
    {

eZ/Publish/Core/MVC/Symfony/Matcher/Tests/ContentBased/Id/ContentTypeGroupTest.php 1 location

@@ 111-120 (lines=10) @@
108
     * @param \eZ\Publish\API\Repository\Repository $repository
109
     * @param bool $expectedResult
110
     */
111
    public function testMatchContentInfo($matchingConfig, Repository $repository, $expectedResult)
112
    {
113
        $this->matcher->setRepository($repository);
114
        $this->matcher->setMatchingConfig($matchingConfig);
115
116
        $this->assertSame(
117
            $expectedResult,
118
            $this->matcher->matchContentInfo($this->getContentInfoMock(['contentTypeId' => 42]))
119
        );
120
    }
121
122
    public function matchContentInfoProvider()
123
    {

eZ/Publish/Core/MVC/Symfony/Matcher/Tests/ContentBased/Id/ParentContentTypeTest.php 1 location

@@ 129-137 (lines=9) @@
126
     * @param \eZ\Publish\API\Repository\Repository $repository
127
     * @param bool $expectedResult
128
     */
129
    public function testMatchContentInfo($matchingConfig, Repository $repository, $expectedResult)
130
    {
131
        $this->matcher->setRepository($repository);
132
        $this->matcher->setMatchingConfig($matchingConfig);
133
        $this->assertSame(
134
            $expectedResult,
135
            $this->matcher->matchContentInfo($this->getContentInfoMock())
136
        );
137
    }
138
}
139

eZ/Publish/Core/MVC/Symfony/Matcher/Tests/ContentBased/Id/ParentLocationTest.php 1 location

@@ 81-89 (lines=9) @@
78
     * @param \eZ\Publish\API\Repository\Repository $repository
79
     * @param bool $expectedResult
80
     */
81
    public function testMatchContentInfo($matchingConfig, Repository $repository, $expectedResult)
82
    {
83
        $this->matcher->setRepository($repository);
84
        $this->matcher->setMatchingConfig($matchingConfig);
85
        $this->assertSame(
86
            $expectedResult,
87
            $this->matcher->matchContentInfo($this->getContentInfoMock(['mainLocationId' => 42]))
88
        );
89
    }
90
91
    public function matchContentInfoProvider()
92
    {

eZ/Publish/Core/MVC/Symfony/Matcher/Tests/ContentBased/Identifier/ParentContentTypeTest.php 1 location

@@ 151-159 (lines=9) @@
148
     * @param \eZ\Publish\API\Repository\Repository $repository
149
     * @param bool $expectedResult
150
     */
151
    public function testMatchContentInfo($matchingConfig, Repository $repository, $expectedResult)
152
    {
153
        $this->matcher->setRepository($repository);
154
        $this->matcher->setMatchingConfig($matchingConfig);
155
        $this->assertSame(
156
            $expectedResult,
157
            $this->matcher->matchContentInfo($this->getContentInfoMock())
158
        );
159
    }
160
}
161

eZ/Publish/Core/MVC/Symfony/Matcher/Tests/ContentBased/Identifier/SectionTest.php 1 location

@@ 133-141 (lines=9) @@
130
     * @param \eZ\Publish\API\Repository\Repository $repository
131
     * @param bool $expectedResult
132
     */
133
    public function testMatchContentInfo($matchingConfig, Repository $repository, $expectedResult)
134
    {
135
        $this->matcher->setRepository($repository);
136
        $this->matcher->setMatchingConfig($matchingConfig);
137
        $this->assertSame(
138
            $expectedResult,
139
            $this->matcher->matchContentInfo($this->getContentInfoMock())
140
        );
141
    }
142
}
143