Skip to content
Snippets Groups Projects
Commit f2980dd7 authored by Eric Sembrat's avatar Eric Sembrat Committed by Adam G-H
Browse files

Issue #3312937 by kunal.sachdev, Webbeh: Fix spelling mistakes

parent 76c5fd27
No related branches found
No related tags found
No related merge requests found
Showing
with 24 additions and 21 deletions
......@@ -135,7 +135,6 @@ function automatic_updates_module_implements_alter(&$implementations, $hook) {
unset($implementations['update']);
}
if ($hook === 'cron') {
// Whatever mofo.
$hook = $implementations['automatic_updates'];
unset($implementations['automatic_updates']);
$implementations['automatic_updates'] = $hook;
......
......@@ -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 @@ use Drupal\package_manager\Exception\ApplyFailedException;
* 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 being unable to boot.
*/
final class FailureMarker {
......
......@@ -8,6 +8,8 @@ use PhpTuf\ComposerStager\Infrastructure\Factory\Process\ProcessFactoryInterface
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.
*
......
......@@ -355,7 +355,7 @@ class StageTest extends PackageManagerKernelTestBase {
$stage->destroy();
// Even through the previous stage was destroyed, we cannot create a new one
// bceause the failure marker is still there.
// because the failure marker is still there.
$stage = $this->createStage();
try {
$stage->create();
......@@ -444,7 +444,7 @@ class StageTest extends PackageManagerKernelTestBase {
* @param string $package_name
* The package name.
* @param bool $is_invalid
* TRUE if the gien package name is invalid and will cause an exception,
* TRUE if the given package name is invalid and will cause an exception,
* FALSE otherwise.
*
* @dataProvider providerValidatePackageNames
......
......@@ -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 @@ class PathLocatorTest extends UnitTestCase {
$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());
}
/**
......
......@@ -47,7 +47,7 @@ final class ReleaseChooser {
* 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\\automatic_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\\automatic_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\\automatic_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\\automatic_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\\automatic_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\\automatic_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\\automatic_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\\automatic_updates\\Kernel\\ReadinessValidation\\StagedProjectsValidatorTest::testErrors()"
],
......
......@@ -14,7 +14,7 @@ function automatic_updates_test_mail_alter(array &$message): void {
if (str_starts_with($message['id'], 'automatic_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 @@ class UpdaterFormTest extends AutomaticUpdatesFunctionalTestBase {
$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.');
......
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