52 calls to ValidationResult::createError()

AllowedScaffoldPackagesValidatorTest::testPreApply in core/modules/package_manager/tests/src/Kernel/AllowedScaffoldPackagesValidatorTest.php
Tests that the allowed-packages setting is validated during pre-apply.
AllowedScaffoldPackagesValidatorTest::testPreCreate in core/modules/package_manager/tests/src/Kernel/AllowedScaffoldPackagesValidatorTest.php
Tests that the allowed-packages setting is validated during pre-create.
BaseRequirementsFulfilledValidatorTest::testBaseRequirement in core/modules/package_manager/tests/src/Kernel/BaseRequirementsFulfilledValidatorTest.php
Tests that base requirement failures stop event propagation.
ComposerMinimumStabilityValidatorTest::testPreRequireEvent in core/modules/package_manager/tests/src/Kernel/ComposerMinimumStabilityValidatorTest.php
Tests error if requested version is less stable than the minimum: stable.
ComposerPatchesValidatorTest::providerErrorDuringPreApply in core/modules/package_manager/tests/src/Kernel/ComposerPatchesValidatorTest.php
Data provider for testErrorDuringPreApply() and testHelpLink().
ComposerPatchesValidatorTest::providerErrorDuringPreCreate in core/modules/package_manager/tests/src/Kernel/ComposerPatchesValidatorTest.php
Data provider for testErrorDuringPreCreate().
ComposerPatchesValidatorTest::testErrorDuringPreApplyWithHelp in core/modules/package_manager/tests/src/Kernel/ComposerPatchesValidatorTest.php
Tests that validation errors can carry links to help.
ComposerPluginsValidatorTest::providerComplexInvalidCases in core/modules/package_manager/tests/src/Kernel/ComposerPluginsValidatorTest.php
Generates complex invalid test cases based on the simple test cases.
ComposerPluginsValidatorTest::providerSimpleInvalidCases in core/modules/package_manager/tests/src/Kernel/ComposerPluginsValidatorTest.php
Generates simple invalid test cases.
ComposerPluginsValidatorTest::testInsecureConfigurationFailsValidationPreApply in core/modules/package_manager/tests/src/Kernel/ComposerPluginsValidatorTest.php
Tests `config.allow-plugins: true` fails validation during pre-apply.
ComposerPluginsValidatorTest::testInsecureConfigurationFailsValidationPreCreate in core/modules/package_manager/tests/src/Kernel/ComposerPluginsValidatorTest.php
Tests `config.allow-plugins: true` fails validation during pre-create.
ComposerValidatorTest::providerComposerSettingsValidation in core/modules/package_manager/tests/src/Kernel/ComposerValidatorTest.php
Data provider for testComposerSettingsValidation().
ComposerValidatorTest::testLinkToOnlineHelp in core/modules/package_manager/tests/src/Kernel/ComposerValidatorTest.php
Tests that invalid configuration links to online help, if available.
DiskSpaceValidatorTest::providerDiskSpaceValidation in core/modules/package_manager/tests/src/Kernel/DiskSpaceValidatorTest.php
Data provider for testDiskSpaceValidation().
DuplicateInfoFileValidatorTest::providerDuplicateInfoFilesInStage in core/modules/package_manager/tests/src/Kernel/DuplicateInfoFileValidatorTest.php
Data provider for testDuplicateInfoFilesInStage.
EnabledExtensionsValidatorTest::providerExtensionRemoved in core/modules/package_manager/tests/src/Kernel/EnabledExtensionsValidatorTest.php
Data provider for testExtensionRemoved().
EnvironmentSupportValidatorTest::testInvalidUrl in core/modules/package_manager/tests/src/Kernel/EnvironmentSupportValidatorTest.php
Tests handling of an invalid URL in the environment support variable.
EnvironmentSupportValidatorTest::testInvalidUrlDuringPreApply in core/modules/package_manager/tests/src/Kernel/EnvironmentSupportValidatorTest.php
Tests an invalid URL in the environment support variable during pre-apply.
EnvironmentSupportValidatorTest::testValidUrl in core/modules/package_manager/tests/src/Kernel/EnvironmentSupportValidatorTest.php
Tests that the validation message links to the provided URL.
EnvironmentSupportValidatorTest::testValidUrlDuringPreApply in core/modules/package_manager/tests/src/Kernel/EnvironmentSupportValidatorTest.php
Tests that the validation message links to the provided URL during pre-apply.
LockFileValidatorTest::testApplyWithNoChange in core/modules/package_manager/tests/src/Kernel/LockFileValidatorTest.php
Tests validation when the staged and active lock files are identical.
LockFileValidatorTest::testCreateWithNoLock in core/modules/package_manager/tests/src/Kernel/LockFileValidatorTest.php
Tests that if no active lock file exists, a stage cannot be created.
LockFileValidatorTest::testLockFileChanged in core/modules/package_manager/tests/src/Kernel/LockFileValidatorTest.php
Tests validation when the lock file has changed.
LockFileValidatorTest::testLockFileDeleted in core/modules/package_manager/tests/src/Kernel/LockFileValidatorTest.php
Tests validation when the lock file is deleted.
MultisiteValidatorTest::providerMultisite in core/modules/package_manager/tests/src/Kernel/MultisiteValidatorTest.php
Data provider for testMultisite().
OverwriteExistingPackagesValidatorTest::testNewPackagesOverwriteExisting in core/modules/package_manager/tests/src/Kernel/OverwriteExistingPackagesValidatorTest.php
Tests that new installed packages overwrite existing directories.
PendingUpdatesValidatorTest::testPendingPostUpdate in core/modules/package_manager/tests/src/Kernel/PendingUpdatesValidatorTest.php
Tests that an error is raised if there are pending post-updates.
PendingUpdatesValidatorTest::testPendingUpdateAfterStaged in core/modules/package_manager/tests/src/Kernel/PendingUpdatesValidatorTest.php
Tests that pending updates stop an operation from being applied.
PendingUpdatesValidatorTest::testPendingUpdateHook in core/modules/package_manager/tests/src/Kernel/PendingUpdatesValidatorTest.php
Tests that an error is raised if there are pending schema updates.
PhpExtensionsValidatorTest::providerPhpExtensionsValidation in core/modules/package_manager/tests/src/Kernel/PhpExtensionsValidatorTest.php
Data provider for ::testPhpExtensionsValidation().
PhpTufValidatorTest::testInvalidConfigurationInProjectRoot in core/modules/package_manager/tests/src/Kernel/PhpTufValidatorTest.php
Tests errors caused by invalid plugin configuration in the project root.
PhpTufValidatorTest::testInvalidConfigurationInStage in core/modules/package_manager/tests/src/Kernel/PhpTufValidatorTest.php
Tests errors caused by invalid plugin configuration in the stage directory.
PhpTufValidatorTest::testPluginNotInstalledInProjectRoot in core/modules/package_manager/tests/src/Kernel/PhpTufValidatorTest.php
Tests there is an error if the plugin is not installed in the project root.
PhpTufValidatorTest::testPluginRemovedFromStagePreApply in core/modules/package_manager/tests/src/Kernel/PhpTufValidatorTest.php
Tests removing the plugin from the stage before applying it.
PhpTufValidatorTest::testPluginRemovedFromStagePreRequire in core/modules/package_manager/tests/src/Kernel/PhpTufValidatorTest.php
Tests removing the plugin from the stage on pre-require.
PreOperationStageEvent::addError in core/modules/package_manager/src/Event/PreOperationStageEvent.php
Convenience method to flag a validation error.
RsyncValidatorTest::testPreCreateFailsIfRsyncNotFound in core/modules/package_manager/tests/src/Kernel/RsyncValidatorTest.php
Tests that the stage cannot be created if rsync is selected, but not found.
SettingsValidatorTest::providerSettingsValidation in core/modules/package_manager/tests/src/Kernel/SettingsValidatorTest.php
Data provider for testSettingsValidation().
StageEventsTest::testAddResult in core/modules/package_manager/tests/src/Kernel/StageEventsTest.php
Tests adding validation results to events.
StageEventsTest::testValidationResults in core/modules/package_manager/tests/src/Kernel/StageEventsTest.php
Tests that an exception is thrown if an event has validation results.
StageNotInActiveValidatorTest::providerTestCheckNotInActive in core/modules/package_manager/tests/src/Unit/StageNotInActiveValidatorTest.php
Data provider for testCheckNotInActive().
SupportedReleaseValidatorTest::providerException in core/modules/package_manager/tests/src/Kernel/SupportedReleaseValidatorTest.php
Data provider for testException().
SymlinkValidatorTest::testAbsoluteSymlinks in core/modules/package_manager/tests/src/Kernel/SymlinkValidatorTest.php
Tests that symlinks with absolute paths are not supported.
SymlinkValidatorTest::testHardLinks in core/modules/package_manager/tests/src/Kernel/SymlinkValidatorTest.php
Tests that hard links are not supported.
SymlinkValidatorTest::testSymlinkPointingOutsideProjectRoot in core/modules/package_manager/tests/src/Kernel/SymlinkValidatorTest.php
Tests that relative symlinks cannot point outside the project root.
SymlinkValidatorTest::testSymlinkPointingOutsideStageDirectory in core/modules/package_manager/tests/src/Kernel/SymlinkValidatorTest.php
Tests that relative symlinks cannot point outside the stage directory.
SymlinkValidatorTest::testSymlinksNotAllowedOnWindows in core/modules/package_manager/tests/src/Kernel/SymlinkValidatorTest.php
Tests that symlinks are not supported on Windows, even if they're safe.
ValidationResultTest::testCreateErrorResult in core/modules/package_manager/tests/src/Unit/ValidationResultTest.php
@covers ::createError
ValidationResultTest::testCreateErrorResultException in core/modules/package_manager/tests/src/Unit/ValidationResultTest.php
@covers ::createError
ValidationResultTest::testOverallSeverity in core/modules/package_manager/tests/src/Unit/ValidationResultTest.php
@covers ::getOverallSeverity
WritableFileSystemValidatorTest::providerStagingRootPermissions in core/modules/package_manager/tests/src/Kernel/WritableFileSystemValidatorTest.php
Data provider for ::testStagingRootPermissions().
WritableFileSystemValidatorTest::providerWritable in core/modules/package_manager/tests/src/Kernel/WritableFileSystemValidatorTest.php
Data provider for testWritable().

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.