Code Duplication    Length = 8-12 lines in 3 locations

tests/DatabaseInstallTest.php 1 location

@@ 20-29 (lines=10) @@
17
    }
18
19
    /** @test */
20
    public function it_requires_packages(): void
21
    {
22
        $composerMock = $this->createMock(Composer::class);
23
24
        $composerMock->expects($this->once())->method('require')->with('illuminate/database "5.6.*"');
25
26
        $this->app->instance(Composer::class, $composerMock);
27
28
        Artisan::call('app:install', ['component' => 'database']);
29
    }
30
31
    /** @test */
32
    public function it_copy_stubs(): void

tests/DotenvInstallTest.php 1 location

@@ 18-25 (lines=8) @@
15
    }
16
17
    /** @test */
18
    public function it_requires_packages(): void
19
    {
20
        $composerMock = $this->createMock(Composer::class);
21
        $composerMock->expects($this->once())->method('require')->with('vlucas/phpdotenv');
22
        $this->app->instance(Composer::class, $composerMock);
23
24
        Artisan::call('app:install', ['component' => 'dotenv']);
25
    }
26
27
    /** @test */
28
    public function it_copy_stubs(): void

tests/LogInstallTest.php 1 location

@@ 17-28 (lines=12) @@
14
    }
15
16
    /** @test */
17
    public function it_requires_packages(): void
18
    {
19
        $composerMock = $this->createMock(Composer::class);
20
21
        $composerMock->expects($this->once())
22
            ->method('require')
23
            ->with('illuminate/log "5.6.*"');
24
25
        $this->app->instance(Composer::class, $composerMock);
26
27
        Artisan::call('app:install', ['component' => 'log']);
28
    }
29
30
    /** @test */
31
    public function it_copy_stubs(): void