Code Duplication    Length = 21-21 lines in 2 locations

tests/unit/Domain/Stream/Activity/MysqlActivityRepositoryTest.php 1 location

@@ 169-189 (lines=21) @@
166
        }
167
    }
168
169
    public function testGetActivitiesRangeFailure()
170
    {
171
        $testData = [
172
            [
173
                'id' => rand(1, 100),
174
                'message' => 'test one',
175
            ],
176
            [
177
                'id' => rand(101, 200),
178
                'message' => 'test two',
179
            ],
180
        ];
181
182
        array_walk($testData, [$this, 'insertData']);
183
184
        $repository = new MysqlActivityRepository(self::$connection);
185
        $data = $repository->getActivities(1, 3);
186
187
        $this->assertEmpty($data);
188
        $this->assertInternalType('array', $data);
189
    }
190
191
    public function testGetActivitiesCount()
192
    {

tests/unit/Domain/Stream/Changelog/MysqlChangelogRepositoryTest.php 1 location

@@ 142-162 (lines=21) @@
139
        }
140
    }
141
142
    public function testGetChangesRangeFailure()
143
    {
144
        $testData = [
145
            [
146
                'id' => rand(1, 100),
147
                'message' => 'test one',
148
            ],
149
            [
150
                'id' => rand(101, 200),
151
                'message' => 'test two',
152
            ],
153
        ];
154
155
        array_walk($testData, [$this, 'insertData']);
156
157
        $repository = new MysqlChangelogRepository(self::$connection);
158
        $data = $repository->getChanges(1, 3);
159
160
        $this->assertEmpty($data);
161
        $this->assertInternalType('array', $data);
162
    }
163
164
    protected function tearDown()
165
    {