Code Duplication    Length = 13-15 lines in 2 locations

src/Lumen/Traits/Tests/Http/Controllers/CreateTrait.php 1 location

@@ 7-21 (lines=15) @@
4
5
trait CreateTrait
6
{
7
	public function testStore()
8
    {
9
        $response = $this->curlHelper
10
                         ->post(
11
                            $this->getServiceTest()->getRepositoryTest()->getMockArray()
12
                         )
13
                         ->send()
14
                         ->getResponse();
15
16
        $this->assertEquals(200, $response['code']);
17
18
        $data = json_decode($response['data'], true);
19
20
        $this->assertGreaterThan(0, $data['id']);
21
    }
22
}
23

src/Lumen/Traits/Tests/Http/Controllers/ReadTrait.php 1 location

@@ 7-19 (lines=13) @@
4
5
trait ReadTrait
6
{
7
	public function testIndex()
8
    {
9
        $this->getServiceTest()->getRepositoryTest()->getFlushedMockObject();
10
11
        $response = $this->curlHelper->send()->getResponse();
12
13
        $this->assertEquals(200, $response['code']);
14
15
        $data = json_decode($response['data'], true);
16
17
        $this->assertGreaterThan(0, count($data));
18
        $this->assertGreaterThan(0, $data[0]['id']);
19
    }
20
21
    public function testShow()
22
    {