Skip to content

Commit f2918d5

Browse files
committed
use two config set
1 parent 5f1a45a commit f2918d5

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

tests/DemoApp/AppTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ protected function setUp(): void
2323
{
2424
require_once __DIR__ . '/../init-configuration.php';
2525

26+
$config = loadConfig();
27+
2628
$this->client = new Client(
2729
[
28-
'base_uri' => loadConfig()['base_uri'],
29-
'headers' => ['x-coverage-id' => 'pcov'],
30+
'base_uri' => $config['base_uri'],
31+
'headers' => ['x-coverage-id' => $config['x-coverage-value']],
3032
'http_errors' => false,
3133
]
3234
);

tests/ui-test-config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@
1313
'datetime' => 'M d, Y H:i:s',
1414
],
1515
'base_uri' => 'http://127.0.0.1:7000',
16+
'x-coverage-value' => 'pcov',
1617
];

0 commit comments

Comments
 (0)