Skip to content
Snippets Groups Projects
Commit 1a7b960d authored by Ted Bowman's avatar Ted Bowman
Browse files

cspell fixes

parent a4d63207
No related branches found
No related tags found
No related merge requests found
Showing
with 24 additions and 21 deletions
......@@ -109,7 +109,7 @@ function auto_updates_module_implements_alter(&$implementations, $hook) {
unset($implementations['update']);
}
if ($hook === 'cron') {
// Whatever mofo.
// Whatever.
$hook = $implementations['auto_updates'];
unset($implementations['auto_updates']);
$implementations['auto_updates'] = $hook;
......
......@@ -47,7 +47,7 @@ public function __construct(VersionPolicyValidator $version_policy_validator) {
* The updater that will be used to install the releases.
*
* @return \Drupal\update\ProjectRelease[]
* The releases that are installable by the given updtaer, according to the
* The releases that are installable by the given updater, according to the
* version validator service.
*/
protected function getInstallableReleases(Updater $updater): array {
......
{
"_readme": [
"This file simuluates a list of packages installed in the active directory of a virtual project.",
"This file simulates a list of packages installed in the active directory of a virtual project.",
"It will be compared against staged.installed.json.",
"See \\Drupal\\Tests\\auto_updates\\Kernel\\ReadinessValidation\\StagedProjectsValidatorTest::testErrors()"
],
......
{
"_readme": [
"This file simuluates a list of packages installed in a virtual staging area.",
"This file simulates a list of packages installed in a virtual staging area.",
"It will be compared against active.installed.json.",
"See \\Drupal\\Tests\\auto_updates\\Kernel\\ReadinessValidation\\StagedProjectsValidatorTest::testErrors()"
],
......
{
"_readme": [
"This file simuluates a list of packages installed in the active directory of a virtual project.",
"This file simulates a list of packages installed in the active directory of a virtual project.",
"It will be compared against staged.installed.json.",
"See \\Drupal\\Tests\\auto_updates\\Kernel\\ReadinessValidation\\StagedProjectsValidatorTest::testErrors()"
],
......
{
"_readme": [
"This file simuluates a list of packages installed in a virtual staging area.",
"This file simulates a list of packages installed in a virtual staging area.",
"It will be compared against active.installed.json.",
"See \\Drupal\\Tests\\auto_updates\\Kernel\\ReadinessValidation\\StagedProjectsValidatorTest::testErrors()"
],
......
{
"_readme": [
"This file simuluates a list of packages installed in the active directory of a virtual project.",
"This file simulates a list of packages installed in the active directory of a virtual project.",
"It will be compared against staged.installed.json.",
"See \\Drupal\\Tests\\auto_updates\\Kernel\\ReadinessValidation\\StagedProjectsValidatorTest::testErrors()"
],
......
{
"_readme": [
"This file simuluates a list of packages installed in a virtual staging area.",
"This file simulates a list of packages installed in a virtual staging area.",
"It will be compared against active.installed.json.",
"See \\Drupal\\Tests\\auto_updates\\Kernel\\ReadinessValidation\\StagedProjectsValidatorTest::testErrors()"
],
......
{
"_readme": [
"This file simuluates a list of packages installed in the active directory of a virtual project.",
"This file simulates a list of packages installed in the active directory of a virtual project.",
"It will be compared against staged.installed.json.",
"See \\Drupal\\Tests\\auto_updates\\Kernel\\ReadinessValidation\\StagedProjectsValidatorTest::testErrors()"
],
......
{
"_readme": [
"This file simuluates a list of packages installed in a virtual staging area.",
"This file simulates a list of packages installed in a virtual staging area.",
"It will be compared against active.installed.json.",
"See \\Drupal\\Tests\\auto_updates\\Kernel\\ReadinessValidation\\StagedProjectsValidatorTest::testErrors()"
],
......
......@@ -14,7 +14,7 @@ function auto_updates_test_mail_alter(array &$message): void {
if (str_starts_with($message['id'], 'auto_updates_')) {
$line_langcodes = [];
// Get the langcode of every translated line in the mssage, including the
// Get the langcode of every translated line in the message, including the
// subject line.
$lines = array_merge($message['body'], [
$message['subject'],
......
......@@ -332,7 +332,7 @@ public function testMarkerFileFailure(): void {
$this->checkForMetaRefresh();
$this->assertUpdateStagedTimes(1);
Committer::setException(new \Exception('failed at commiter'));
Committer::setException(new \Exception('failed at committer'));
$page->pressButton('Continue');
$this->checkForMetaRefresh();
$assert_session->pageTextContainsOnce('An error has occurred.');
......@@ -774,7 +774,7 @@ public function testNoContinueOnError(): void {
$page->pressButton('Update to 9.8.1');
$this->checkForMetaRefresh();
$this->assertUpdateStagedTimes(1);
$error = ValidationResult::createError(['Error occured.']);
$error = ValidationResult::createError(['Error occurred.']);
TestSubscriber::setTestResult([$error], StatusCheckEvent::class);
$this->getSession()->reload();
$assert_session->buttonNotExists('Continue');
......
......@@ -81,7 +81,7 @@ public function testEventConsumesExceptionResults(): void {
* Tests validation errors, or lack thereof.
*
* @param string $root_fixture_directory
* A directory containing to fixtures sub direcotories, 'active' and
* A directory containing to fixtures sub-directories, 'active' and
* 'staged'.
* @param string|null $expected_summary
* The expected error summary, or NULL if no errors are expected.
......
......@@ -8,6 +8,8 @@
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\package_manager\Validator\ComposerExecutableValidator;
// cspell:ignore grasmash
/**
* Implements hook_help().
*/
......
......@@ -35,9 +35,9 @@ trait RequireEventTrait {
* The stage.
* @param string[] $runtime_packages
* The runtime (i.e., non-dev) packages to be required, in the form
* 'vendor/name:constrant'.
* 'vendor/name:constraint'.
* @param string[] $dev_packages
* The dev packages to be required, in the form 'vendor/name:constrant'.
* The dev packages to be required, in the form 'vendor/name:constraint'.
*/
public function __construct(Stage $stage, array $runtime_packages, array $dev_packages = []) {
$this->runtimePackages = $runtime_packages;
......
......@@ -12,7 +12,7 @@
* code is copied back into it, and then removed afterwards. This allows us to
* know if a commit operation failed midway through, which could leave the site
* code base in an indeterminate state -- which, in the worst case scenario,
* might render Drupal unbootable.
* might render Drupal unable to boot.
*/
final class FailureMarker {
......
......@@ -8,6 +8,7 @@
use PhpTuf\ComposerStager\Infrastructure\Factory\Process\ProcessFactory as StagerProcessFactory;
use Symfony\Component\Process\Process;
// cspell:ignore BINDIR
/**
* Defines a process factory which sets the COMPOSER_HOME environment variable.
*
......
......@@ -28,7 +28,7 @@ class StageValidationExceptionTest extends PackageManagerKernelTestBase {
* The test cases.
*/
public function providerResultsAsText(): array {
$messages = ['Blam!', 'Kapow!'];
$messages = ['Bang!', 'Pow!'];
$summary = t('There was sadness.');
$result_no_summary = ValidationResult::createError([$messages[0]]);
......
......@@ -19,7 +19,7 @@ class InstalledPackagesDataTest extends UnitTestCase {
/**
* Tests that Composer's `installed.php` file looks how we expect.
*/
public function testinstalledPackagesData(): void {
public function testInstalledPackagesData(): void {
$loaders = ClassLoader::getRegisteredLoaders();
$installed_php = key($loaders) . '/composer/installed.php';
$this->assertFileIsReadable($installed_php);
......
......@@ -20,7 +20,7 @@ class PathLocatorTest extends UnitTestCase {
public function testStagingRoot(): void {
$config_factory = $this->getConfigFactoryStub([
'system.site' => [
'uuid' => 'my_site_id',
'uuid' => '_my_site_id',
],
]);
$file_system = $this->prophesize(FileSystemInterface::class);
......@@ -31,7 +31,7 @@ public function testStagingRoot(): void {
$config_factory,
$file_system->reveal()
);
$this->assertSame('/path/to/temp/.package_managermy_site_id', $path_locator->getStagingRoot());
$this->assertSame('/path/to/temp/.package_manager_my_site_id', $path_locator->getStagingRoot());
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment