Codeception\Command\Tests\Unit\DbSnapshotTest::it_should_require_the_database_name PHP Method

it_should_require_the_database_name() public method

    public function it_should_require_the_database_name()
    {
        $application = new Application();
        $application->add(new DbSnapshot());
        $command = $application->find('db:snapshot');
        $commandTester = new CommandTester($command);
        $this->expectException('Symfony\\Component\\Console\\Exception\\RuntimeException');
        $commandTester->execute(['command' => $command->getName()]);
    }