Code Duplication    Length = 19-20 lines in 5 locations

src/Mongrate/MongrateBundle/Tests/Command/DownCommandTest.php 1 location

@@ 10-28 (lines=19) @@
7
use Mongrate\MongrateBundle\Command\DownCommand;
8
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
9
10
class DownCommandTest extends AbstractCommandTest
11
{
12
    public function testCommandIsFound()
13
    {
14
        $this->application->add(new DownCommand($this->config));
15
16
        $this->assertCommandIsFound('mongrate:down', DownCommand::class);
17
    }
18
19
    public function testIsContainerAware()
20
    {
21
        $this->assertIsContainerAware('mongrate:down', DownCommand::class);
22
    }
23
24
    public function testIsContainerWasInjectedToService()
25
    {
26
        $this->assertContainerWasInjectedToService('mongrate:down', DownCommand::class);
27
    }
28
}
29

src/Mongrate/MongrateBundle/Tests/Command/TestCommandTest.php 1 location

@@ 10-28 (lines=19) @@
7
use Mongrate\MongrateBundle\Command\TestCommand;
8
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
9
10
class TestCommandTest extends AbstractCommandTest
11
{
12
    public function testCommandIsFound()
13
    {
14
        $this->application->add(new TestCommand($this->config));
15
16
        $this->assertCommandIsFound('mongrate:test', TestCommand::class);
17
    }
18
19
    public function testIsContainerAware()
20
    {
21
        $this->assertIsContainerAware('mongrate:test', TestCommand::class);
22
    }
23
24
    public function testIsContainerWasInjectedToService()
25
    {
26
        $this->assertContainerWasInjectedToService('mongrate:test', TestCommand::class);
27
    }
28
}
29

src/Mongrate/MongrateBundle/Tests/Command/ToggleMigrationCommandTest.php 1 location

@@ 10-28 (lines=19) @@
7
use Mongrate\MongrateBundle\Command\ToggleMigrationCommand;
8
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
9
10
class ToggleMigrationCommandTest extends AbstractCommandTest
11
{
12
    public function testCommandIsFound()
13
    {
14
        $this->application->add(new ToggleMigrationCommand($this->config));
15
16
        $this->assertCommandIsFound('mongrate:toggle', ToggleMigrationCommand::class);
17
    }
18
    
19
    public function testIsContainerAware()
20
    {
21
        $this->assertIsContainerAware('mongrate:toggle', ToggleMigrationCommand::class);
22
    }
23
24
    public function testIsContainerWasInjectedToService()
25
    {
26
        $this->assertContainerWasInjectedToService('mongrate:toggle', ToggleMigrationCommand::class);
27
    }
28
}
29

src/Mongrate/MongrateBundle/Tests/Command/UpAllCommandTest.php 1 location

@@ 10-29 (lines=20) @@
7
use Mongrate\MongrateBundle\Command\UpAllCommand;
8
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
9
10
class UpAllCommandTest extends AbstractCommandTest
11
{
12
    public function testCommandIsFound()
13
    {
14
        $this->application->add(new UpAllCommand($this->config));
15
16
        $this->assertCommandIsFound('mongrate:up-all', UpAllCommand::class);
17
    }
18
19
20
    public function testIsContainerAware()
21
    {
22
        $this->assertIsContainerAware('mongrate:up-all', UpAllCommand::class);
23
    }
24
25
    public function testIsContainerWasInjectedToService()
26
    {
27
        $this->assertContainerWasInjectedToService('mongrate:up-all', UpAllCommand::class);
28
    }
29
}
30

src/Mongrate/MongrateBundle/Tests/Command/UpCommandTest.php 1 location

@@ 10-28 (lines=19) @@
7
use Mongrate\MongrateBundle\Command\UpCommand;
8
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
9
10
class UpCommandTest extends AbstractCommandTest
11
{
12
    public function testCommandIsFound()
13
    {
14
        $this->application->add(new UpCommand($this->config));
15
16
        $this->assertCommandIsFound('mongrate:up', UpCommand::class);
17
    }
18
19
    public function testIsContainerAware()
20
    {
21
        $this->assertIsContainerAware('mongrate:up', UpCommand::class);
22
    }
23
24
    public function testIsContainerWasInjectedToService()
25
    {
26
        $this->assertContainerWasInjectedToService('mongrate:up', UpCommand::class);
27
    }
28
}
29