Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit daada35

Browse files
committed
Fix test
1 parent 7dd9c68 commit daada35

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Sylius/Bundle/ThemeBundle/Tests/DependencyInjection/FilesystemSource/ConfigurationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function it_allows_an_integer_for_scan_depth(): void
4848
{
4949
$this->assertProcessedConfigurationEquals(
5050
[
51-
['scan_depth' => 1, 'sources' => ['filesystem' => null]],
51+
['sources' => ['filesystem' => ['scan_depth' => 1]]],
5252
],
5353
['sources' => ['filesystem' => [
5454
'directories' => ['%kernel.root_dir%/themes'],
@@ -119,7 +119,7 @@ public function it_is_invalid_to_pass_a_string_as_scan_depth(): void
119119
{
120120
$this->assertPartialConfigurationIsInvalid(
121121
[
122-
['scan_depth' => 'test'],
122+
['sources' => ['filesystem' => ['directories' => ['/custom/path', '/custom/path2'], 'scan_depth' => 'test']]],
123123
],
124124
'sources.filesystem'
125125
);

0 commit comments

Comments
 (0)