Code Duplication    Length = 9-12 lines in 7 locations

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

@@ 110-119 (lines=10) @@
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($this->getContentInfoMock(array('contentTypeId' => 42)))
118
        );
119
    }
120
121
    public function matchContentInfoProvider()
122
    {

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

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

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(array('contentTypeId' => 42))
119
            )
120
        );
121
    }
122
123
    public function matchContentInfoProvider()
124
    {

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

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

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

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

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

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

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

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