Code Duplication    Length = 8-8 lines in 7 locations

Tests/RepositoryTest.php 7 locations

@@ 12-19 (lines=8) @@
9
 */
10
class RepositoryTest extends \PHPUnit_Framework_TestCase
11
{
12
    public function testThatFindCallsFindOnFinder()
13
    {
14
        $testQuery = 'Test Query';
15
16
        $finderMock = $this->getFinderMock($testQuery);
17
        $repository = new Repository($finderMock);
18
        $repository->find($testQuery);
19
    }
20
21
    public function testThatFindCallsFindOnFinderWithLimit()
22
    {
@@ 31-38 (lines=8) @@
28
        $repository->find($testQuery, $testLimit);
29
    }
30
31
    public function testThatFindPaginatedCallsFindPaginatedOnFinder()
32
    {
33
        $testQuery = 'Test Query';
34
35
        $finderMock = $this->getFinderMock($testQuery, array(), 'findPaginated');
36
        $repository = new Repository($finderMock);
37
        $repository->findPaginated($testQuery);
38
    }
39
40
    public function testThatCreatePaginatorCreatesAPaginatorViaFinder()
41
    {
@@ 40-47 (lines=8) @@
37
        $repository->findPaginated($testQuery);
38
    }
39
40
    public function testThatCreatePaginatorCreatesAPaginatorViaFinder()
41
    {
42
        $testQuery = 'Test Query';
43
44
        $finderMock = $this->getFinderMock($testQuery, array(), 'createPaginatorAdapter');
45
        $repository = new Repository($finderMock);
46
        $repository->createPaginatorAdapter($testQuery);
47
    }
48
49
    public function testThatFindHybridCallsFindHybridOnFinder()
50
    {
@@ 49-56 (lines=8) @@
46
        $repository->createPaginatorAdapter($testQuery);
47
    }
48
49
    public function testThatFindHybridCallsFindHybridOnFinder()
50
    {
51
        $testQuery = 'Test Query';
52
53
        $finderMock = $this->getFinderMock($testQuery, null, 'findHybrid');
54
        $repository = new Repository($finderMock);
55
        $repository->findHybrid($testQuery);
56
    }
57
58
    public function testThatFindRawResultCallsFindRawResultOnFinder()
59
    {
@@ 58-65 (lines=8) @@
55
        $repository->findHybrid($testQuery);
56
    }
57
58
    public function testThatFindRawResultCallsFindRawResultOnFinder()
59
    {
60
        $testQuery = 'Test Query';
61
62
        $finderMock = $this->getFinderMock($testQuery, null, 'findRawResult');
63
        $repository = new Repository($finderMock);
64
        $repository->findRawResult($testQuery);
65
    }
66
    
67
    public function testThatFindRawPaginatedCallsFindRawPaginatedOnFinder()
68
    {
@@ 67-74 (lines=8) @@
64
        $repository->findRawResult($testQuery);
65
    }
66
    
67
    public function testThatFindRawPaginatedCallsFindRawPaginatedOnFinder()
68
    {
69
        $testQuery = 'Test Query';
70
71
        $finderMock = $this->getFinderMock($testQuery, array(), 'findRawPaginated');
72
        $repository = new Repository($finderMock);
73
        $repository->findRawPaginated($testQuery);
74
    }
75
76
    public function testThatCreateRawPaginatorCreatesAPaginatorViaFinder()
77
    {
@@ 76-83 (lines=8) @@
73
        $repository->findRawPaginated($testQuery);
74
    }
75
76
    public function testThatCreateRawPaginatorCreatesAPaginatorViaFinder()
77
    {
78
        $testQuery = 'Test Query';
79
80
        $finderMock = $this->getFinderMock($testQuery, array(), 'createRawPaginatorAdapter');
81
        $repository = new Repository($finderMock);
82
        $repository->createRawPaginatorAdapter($testQuery);
83
    }
84
85
    /**
86
     * @param string $testQuery