ApiPlatform\Core\Tests\Bridge\Symfony\Bundle\DependencyInjection\ConfigurationTest::testDefaultConfig PHP Method

testDefaultConfig() public method

public testDefaultConfig ( )
    public function testDefaultConfig()
    {
        $treeBuilder = $this->configuration->getConfigTreeBuilder();
        $config = $this->processor->processConfiguration($this->configuration, ['api_platform' => ['title' => 'title', 'description' => 'description', 'version' => '1.0.0']]);
        $this->assertInstanceOf(ConfigurationInterface::class, $this->configuration);
        $this->assertInstanceOf(TreeBuilder::class, $treeBuilder);
        $this->assertEquals(['title' => 'title', 'description' => 'description', 'version' => '1.0.0', 'formats' => ['jsonld' => ['mime_types' => ['application/ld+json']], 'json' => ['mime_types' => ['application/json']], 'html' => ['mime_types' => ['text/html']]], 'error_formats' => ['jsonproblem' => ['mime_types' => ['application/problem+json']], 'jsonld' => ['mime_types' => ['application/ld+json']]], 'exception_to_status' => [ExceptionInterface::class => Response::HTTP_BAD_REQUEST, InvalidArgumentException::class => Response::HTTP_BAD_REQUEST], 'default_operation_path_resolver' => 'api_platform.operation_path_resolver.underscore', 'name_converter' => null, 'enable_fos_user' => false, 'enable_nelmio_api_doc' => false, 'enable_swagger' => true, 'enable_swagger_ui' => true, 'eager_loading' => ['enabled' => true, 'max_joins' => 30, 'force_eager' => true], 'collection' => ['order' => null, 'order_parameter_name' => 'order', 'pagination' => ['enabled' => true, 'client_enabled' => false, 'client_items_per_page' => false, 'items_per_page' => 30, 'page_parameter_name' => 'page', 'enabled_parameter_name' => 'pagination', 'items_per_page_parameter_name' => 'itemsPerPage', 'maximum_items_per_page' => null]]], $config);
    }