Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tg666 committed Aug 5, 2024
1 parent 98cdb3e commit b7ff755
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Bridge/Nette/DI/AssetExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ public function getConfigSchema(): Schema
'json_manifest_path' => Expect::string()
->nullable(),
'strict_mode' => Expect::bool(FALSE),
])->assert($assertBasePathAndBaseUrlsCombination, 'You cannot use both \'base_path\' and \'base_urls\' at the same time.')
])->castTo(PackageConfig::class)
->assert($assertBasePathAndBaseUrlsCombination, 'You cannot use both \'base_path\' and \'base_urls\' at the same time.')
->assert($assertVersionStrategyAndVersionCombination, 'You cannot use both \'version_strategy\' and \'version\' at the same time.')
->assert($assertVersionStrategyAndJsonManifestPathCombination, 'You cannot use both \'version_strategy\' and \'json_manifest_path\' at the same time.')
->assert($assertVersionAndJsonManifestPathCombination, 'You cannot use both \'version\' and \'json_manifest_path\' at the same time.')
->castTo(PackageConfig::class);
->assert($assertVersionAndJsonManifestPathCombination, 'You cannot use both \'version\' and \'json_manifest_path\' at the same time.');

return Expect::structure([
'base_path' => Expect::string(''),
Expand All @@ -75,11 +75,11 @@ public function getConfigSchema(): Schema
->nullable(),
'strict_mode' => Expect::bool(FALSE),
'packages' => Expect::arrayOf($packageStructure, 'string'),
])->assert($assertBasePathAndBaseUrlsCombination, 'You cannot use both \'base_path\' and \'base_urls\' at the same time.')
])->castTo(AssetConfig::class)
->assert($assertBasePathAndBaseUrlsCombination, 'You cannot use both \'base_path\' and \'base_urls\' at the same time.')
->assert($assertVersionStrategyAndVersionCombination, 'You cannot use both \'version_strategy\' and \'version\' at the same time.')
->assert($assertVersionStrategyAndJsonManifestPathCombination, 'You cannot use both \'version_strategy\' and \'json_manifest_path\' at the same time.')
->assert($assertVersionAndJsonManifestPathCombination, 'You cannot use both \'version\' and \'json_manifest_path\' at the same time.')
->castTo(AssetConfig::class);
->assert($assertVersionAndJsonManifestPathCombination, 'You cannot use both \'version\' and \'json_manifest_path\' at the same time.');
}

public function loadConfiguration(): void
Expand Down

0 comments on commit b7ff755

Please sign in to comment.