Skip to content

Commit ce42bb8

Browse files
committed
Fix tests after updating to beta 2
1 parent e4e333f commit ce42bb8

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/DependencyInjection/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ public function getConfigTreeBuilder()
6060
->end()
6161
->scalarNode('error_types')
6262
->end()
63-
->arrayNode('excluded_app_path')
64-
->defaultValue($defaultValues->getExcludedProjectPaths())
63+
->arrayNode('in_app_exclude')
64+
->defaultValue($defaultValues->getInAppExcludedPaths())
6565
->scalarPrototype()->end()
6666
->end()
6767
->arrayNode('excluded_exceptions')

src/DependencyInjection/SentryExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ private function passConfigurationToOptions(ContainerBuilder $container, array $
7474
}
7575
}
7676

77-
if (\array_key_exists('excluded_app_path', $processedOptions)) {
78-
$options->addMethodCall('setExcludedProjectPaths', [$processedOptions['excluded_app_path']]);
77+
if (\array_key_exists('in_app_exclude', $processedOptions)) {
78+
$options->addMethodCall('setInAppExcludedPaths', [$processedOptions['in_app_exclude']]);
7979
}
8080

8181
if (\array_key_exists('error_types', $processedOptions)) {

test/DependencyInjection/ConfigurationTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function testConfigurationDefaults(): void
4949
],
5050
'options' => [
5151
'environment' => '%kernel.environment%',
52-
'excluded_app_path' => $defaultSdkValues->getExcludedProjectPaths(),
52+
'in_app_exclude' => $defaultSdkValues->getInAppExcludedPaths(),
5353
'excluded_exceptions' => $defaultSdkValues->getExcludedExceptions(),
5454
'prefixes' => $defaultSdkValues->getPrefixes(),
5555
'project_root' => '%kernel.root_dir%/..',
@@ -87,7 +87,7 @@ public function optionValuesProvider(): array
8787
['enable_compression', false],
8888
['environment', 'staging'],
8989
['error_types', E_ALL],
90-
['excluded_app_path', ['some/path']],
90+
['in_app_exclude', ['some/path']],
9191
['excluded_exceptions', [\Throwable::class]],
9292
['logger', 'some-logger'],
9393
['max_breadcrumbs', 15],
@@ -128,7 +128,7 @@ public function invalidValuesProvider(): array
128128
['enable_compression', 'string'],
129129
['environment', ''],
130130
['error_types', []],
131-
['excluded_app_path', 'some/single/path'],
131+
['in_app_exclude', 'some/single/path'],
132132
['excluded_exceptions', 'some-string'],
133133
['logger', []],
134134
['max_breadcrumbs', -1],

test/DependencyInjection/SentryExtensionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function optionsValueProvider(): array
8888
['enable_compression', false, 'isCompressionEnabled'],
8989
['environment', 'staging'],
9090
['error_types', E_ALL & ~E_NOTICE],
91-
['excluded_app_path', ['some/path'], 'getExcludedProjectPaths'],
91+
['in_app_exclude', ['/some/path'], 'getInAppExcludedPaths'],
9292
['excluded_exceptions', [\Throwable::class]],
9393
['logger', 'sentry-logger'],
9494
['max_breadcrumbs', 15],
@@ -180,7 +180,7 @@ private function getContainer(array $configuration = []): Container
180180
$containerBuilder = new ContainerBuilder();
181181
$containerBuilder->setParameter('kernel.root_dir', 'kernel/root');
182182
if (method_exists(Kernel::class, 'getProjectDir')) {
183-
$containerBuilder->setParameter('kernel.project_dir', '/dir/project/root');
183+
$containerBuilder->setParameter('kernel.project_dir', '/dir/project/root/');
184184
}
185185
$containerBuilder->setParameter('kernel.environment', 'test');
186186

0 commit comments

Comments
 (0)