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

testExceptionToStatusConfig() public method

    public function testExceptionToStatusConfig()
    {
        $config = $this->processor->processConfiguration($this->configuration, ['api_platform' => ['exception_to_status' => [\InvalidArgumentException::class => Response::HTTP_BAD_REQUEST, \RuntimeException::class => 'HTTP_INTERNAL_SERVER_ERROR']]]);
        $this->assertTrue(isset($config['exception_to_status']));
        $this->assertSame([\InvalidArgumentException::class => Response::HTTP_BAD_REQUEST, \RuntimeException::class => Response::HTTP_INTERNAL_SERVER_ERROR], $config['exception_to_status']);
    }