Skip to content

Commit 37867a5

Browse files
committed
test(config): cover environment config normalization
Signed-off-by: Vitor Mattos <vitor@php.rio>
1 parent 630c442 commit 37867a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Unit/Config/EnvironmentConfigTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function testDefaultsToProductionUrl(): void
2121

2222
self::assertFalse($config->sandboxMode);
2323
self::assertSame(
24-
'https://nfse.fazenda.gov.br/NFS-e/api/v1',
24+
'https://sefin.nfse.gov.br/SefinNacional',
2525
$config->baseUrl,
2626
);
2727
}
@@ -32,14 +32,14 @@ public function testSandboxModeSelectsSandboxUrl(): void
3232

3333
self::assertTrue($config->sandboxMode);
3434
self::assertSame(
35-
'https://hml.nfse.fazenda.gov.br/NFS-e/api/v1',
35+
'https://sefin.producaorestrita.nfse.gov.br/SefinNacional',
3636
$config->baseUrl,
3737
);
3838
}
3939

4040
public function testCustomBaseUrlOverridesMode(): void
4141
{
42-
$custom = 'http://localhost:8080/NFS-e/api/v1';
42+
$custom = 'http://localhost:8080/SefinNacional';
4343
$config = new EnvironmentConfig(sandboxMode: false, baseUrl: $custom);
4444

4545
self::assertFalse($config->sandboxMode);
@@ -48,7 +48,7 @@ public function testCustomBaseUrlOverridesMode(): void
4848

4949
public function testCustomBaseUrlOverridesSandboxUrl(): void
5050
{
51-
$custom = 'http://mock-server/NFS-e/api/v1';
51+
$custom = 'http://mock-server/SefinNacional';
5252
$config = new EnvironmentConfig(sandboxMode: true, baseUrl: $custom);
5353

5454
self::assertSame($custom, $config->baseUrl);

0 commit comments

Comments
 (0)