mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 11:09:26 +03:00
Update ConfigurationTest.php
This commit is contained in:
parent
635aa0f997
commit
e6aa97c432
@ -20,7 +20,7 @@ class ConfigurationTest extends TestCase
|
|||||||
public function testDefaultArea()
|
public function testDefaultArea()
|
||||||
{
|
{
|
||||||
$processor = new Processor();
|
$processor = new Processor();
|
||||||
$config = $processor->processConfiguration(new Configuration(), [['areas' => ['path_patterns' => ['/foo'], 'host_patterns' => [], 'documentation' => []]]]);
|
$config = $processor->processConfiguration(new Configuration(), [['areas' => ['path_patterns' => ['/foo']]]]);
|
||||||
|
|
||||||
$this->assertSame(['default' => ['path_patterns' => ['/foo'], 'host_patterns' => [], 'documentation' => []]], $config['areas']);
|
$this->assertSame(['default' => ['path_patterns' => ['/foo'], 'host_patterns' => [], 'documentation' => []]], $config['areas']);
|
||||||
}
|
}
|
||||||
@ -29,9 +29,9 @@ class ConfigurationTest extends TestCase
|
|||||||
{
|
{
|
||||||
$processor = new Processor();
|
$processor = new Processor();
|
||||||
$config = $processor->processConfiguration(new Configuration(), [['areas' => $areas = [
|
$config = $processor->processConfiguration(new Configuration(), [['areas' => $areas = [
|
||||||
'default' => ['path_patterns' => ['/foo'], 'host_patterns' => [], 'documentation' => []],
|
'default' => ['path_patterns' => ['/foo'], 'documentation' => []],
|
||||||
'internal' => ['path_patterns' => ['/internal'], 'host_patterns' => ['^swagger\.'], 'documentation' => []],
|
'internal' => ['path_patterns' => ['/internal'], 'host_patterns' => ['^swagger\.']],
|
||||||
'commercial' => ['path_patterns' => ['/internal'], 'host_patterns' => [], 'documentation' => []],
|
'commercial' => ['path_patterns' => ['/internal'], 'host_patterns' => []],
|
||||||
]]]);
|
]]]);
|
||||||
|
|
||||||
$this->assertSame($areas, $config['areas']);
|
$this->assertSame($areas, $config['areas']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user