Code Duplication    Length = 9-9 lines in 3 locations

src/Kunstmaan/AdminListBundle/Tests/unit/Service/ExportServiceTest.php 3 locations

@@ 62-70 (lines=9) @@
59
        $this->assertEquals(['Csv' => 'csv', 'Ods' => 'ods', 'Excel' => 'xlsx'], $extensions);
60
    }
61
62
    public function testGetDownloadableResponseReturnsStreamedResponseWithExcel()
63
    {
64
        /** @var ExportableInterface $adminList */
65
        $adminList = $this->createMock('Kunstmaan\AdminListBundle\AdminList\ExportableInterface');
66
67
        $response = $this->object->getDownloadableResponse($adminList, Type::XLSX);
68
69
        $this->assertInstanceOf('Symfony\Component\HttpFoundation\StreamedResponse', $response);
70
    }
71
72
    public function testGetDownloadableResponseReturnsStreamedResponseWithOds()
73
    {
@@ 72-80 (lines=9) @@
69
        $this->assertInstanceOf('Symfony\Component\HttpFoundation\StreamedResponse', $response);
70
    }
71
72
    public function testGetDownloadableResponseReturnsStreamedResponseWithOds()
73
    {
74
        /** @var ExportableInterface $adminList */
75
        $adminList = $this->createMock('Kunstmaan\AdminListBundle\AdminList\ExportableInterface');
76
77
        $response = $this->object->getDownloadableResponse($adminList, Type::ODS);
78
79
        $this->assertInstanceOf('Symfony\Component\HttpFoundation\StreamedResponse', $response);
80
    }
81
82
    public function testGetDownloadableResponseReturnsStreamedResponseWithCsv()
83
    {
@@ 82-90 (lines=9) @@
79
        $this->assertInstanceOf('Symfony\Component\HttpFoundation\StreamedResponse', $response);
80
    }
81
82
    public function testGetDownloadableResponseReturnsStreamedResponseWithCsv()
83
    {
84
        /** @var ExportableInterface $adminList */
85
        $adminList = $this->createMock('Kunstmaan\AdminListBundle\AdminList\ExportableInterface');
86
87
        $response = $this->object->getDownloadableResponse($adminList, Type::CSV);
88
89
        $this->assertInstanceOf('Symfony\Component\HttpFoundation\StreamedResponse', $response);
90
    }
91
}
92