Code Duplication    Length = 9-12 lines in 7 locations

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

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

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/ParentContentTypeTest.php 1 location

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

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/Identifier/ParentContentTypeTest.php 1 location

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

eZ/Publish/Core/MVC/Symfony/Matcher/Tests/ContentBased/Identifier/SectionTest.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