mirror of
https://github.com/e107inc/e107.git
synced 2025-08-07 23:26:41 +02:00
Issue #5458 Test
This commit is contained in:
@@ -2406,6 +2406,16 @@ class e107Test extends \Codeception\Test\Unit
|
|||||||
'httpHost' => 'subdomain-example.com',
|
'httpHost' => 'subdomain-example.com',
|
||||||
'expected' => false
|
'expected' => false
|
||||||
],
|
],
|
||||||
|
'www domain' => [
|
||||||
|
'allowedHosts' => ['example.com'],
|
||||||
|
'httpHost' => 'www.example.com',
|
||||||
|
'expected' => true
|
||||||
|
],
|
||||||
|
'www2 domain' => [
|
||||||
|
'allowedHosts' => ['www.example.com'],
|
||||||
|
'httpHost' => 'example.com',
|
||||||
|
'expected' => true
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach($testCases as $scenario => $testCase)
|
foreach($testCases as $scenario => $testCase)
|
||||||
|
Reference in New Issue
Block a user