Code Duplication    Length = 8-9 lines in 2 locations

tests/API/Url/UrlBeautifierTest.php 2 locations

@@ 97-104 (lines=8) @@
94
        $this->assertEquals("~id=243478931", $query->getRefinementString());
95
    }
96
97
    public function testSearchQuery()
98
    {
99
        $this->beautifier->setSearchMapping("q")
100
            ->addRefinementMapping("t", "test");
101
        $query = $this->beautifier->fromUrl("http://example.com/this%20is%20a%20test/value/qt");
102
        $this->assertEquals("this is a test", $query->getQuery());
103
        $this->assertEquals("~test=value", $query->getRefinementString());
104
    }
105
106
    public function testInvalidReferenceBlock()
107
    {
@@ 124-132 (lines=9) @@
121
        $this->assertEquals($expectedUrl, $actual);
122
    }
123
124
    public function testDeepSearchQuery()
125
    {
126
        $this->beautifier->setSearchMapping("q")
127
            ->addRefinementMapping("t", "test");
128
        $query = $this->beautifier->fromUrl("http://example.com/path/to/search/this%20is%20a%20test/value/qt");
129
130
        $this->assertEquals("this is a test", $query->getQuery());
131
        $this->assertEquals("~test=value", $query->getRefinementString());
132
    }
133
134
    public function testSearchUrlBackAndForth()
135
    {