ApiPlatform\Core\Tests\Bridge\Symfony\Bundle\Command\SwaggerCommandTest::testExecute PHP Méthode

testExecute() public méthode

public testExecute ( )
    public function testExecute()
    {
        self::bootKernel();
        $application = new Application(static::$kernel);
        $application->setCatchExceptions(false);
        $application->setAutoExit(false);
        $tester = new ApplicationTester($application);
        $tester->run(['command' => 'api:swagger:export']);
        $this->assertJson($tester->getDisplay());
    }
SwaggerCommandTest