Code Duplication    Length = 9-12 lines in 7 locations

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

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

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

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

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

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

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

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

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

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

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

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

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