Test Failed
Pull Request — master (#6)
by mon
12:48
created

UpdateCommandTest::testExecute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 9.7998
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace FileEye\MimeMap\test\Command;
4
5
use Symfony\Bundle\FrameworkBundle\Console\Application;
6
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
7
use Symfony\Component\Console\Tester\CommandTester;
8
9
class UpdateCommandTest extends KernelTestCase
10
{
11
    public function testExecute()
12
    {
13
        $kernel = static::createKernel();
14
        $application = new Application($kernel);
15
16
        $command = $application->find('update');
17
        $commandTester = new CommandTester($command);
18
        $commandTester->execute([
19
        ]);
20
21
        // the output of the command in the console
22
        $output = $commandTester->getDisplay();
23
        $this->assertContains('No changes', $output);
24
    }
25
}
26