Verified Commit cb98777f authored by Dave Long's avatar Dave Long
Browse files

Issue #3395900 by quietone, smustgrave: Correct spelling of words in module core/tests

parent d2d6d0c1
Loading
Loading
Loading
Loading
Loading
+0 −23
Original line number Diff line number Diff line
@@ -102,8 +102,6 @@ browsertest
browsertestbase
brûlée
bubbleable
buildable
buildtest
bundleable
bundleless
bundlenode
@@ -152,7 +150,6 @@ classtype
cldr
clearfix
closethick
cnenzrgre
codesniffer
colgroups
colinodell
@@ -179,7 +176,6 @@ crema
crossout
crème
csrftoken
cssidentifier
csslintrc
csstools
curle
@@ -227,7 +223,6 @@ dialogsave
diffchange
differring
displaymessage
distro
ditka
divs
dnumber
@@ -245,7 +240,6 @@ drivertest
drivertext
dropbutton
dropbuttons
drudbal
drupaldevdays
drupalelementstyle
drupalelementstylecommand
@@ -279,7 +273,6 @@ endset
endtrans
enim
enoki
entit
entitytype
entityviewedit
errmode
@@ -327,21 +320,17 @@ fodg
fodp
fods
fodt
fooalert
foobarbaz
foofoo
formattable
fouc
fourcol
fozzie
fraîche
frontpage
fudgy
fulldata
fulldate
fulltext
functionaljavascripttest
functionaltest
funic
gabilondo
gids
@@ -409,7 +398,6 @@ jssdk
jumplinks
justinrainbow
kangarookitten
kerneltest
kernighan
keyevent
keypresses
@@ -612,7 +600,6 @@ placeholdered
placeholdering
plid
plusthick
poink
porterstemmer
postcondition
postcss
@@ -818,7 +805,6 @@ subtoken
subvalue
subvalues
subview
suggestionnotimplemented
sulaco
supercede
svgz
@@ -846,22 +832,15 @@ testbody
testbot
testbots
testcase
testcases
testcontent
testcontextawareblock
testdialog
testfield
testfilename
testfilter
testfunc
testfunction
testgroups
testk
testkey
testload
testlogger
testname
testproject
testsuite
testsuites
textareas
@@ -1010,12 +989,10 @@ webmention
webmozart
webroot
webservers
webtest
widthx
wmlscript
wordprocessingml
wordsafe
wordword
writeln
wwwrun
xbap
+2 −2
Original line number Diff line number Diff line
@@ -66,9 +66,9 @@ public function testThemeDataTypes() {
      }
    }

    // suggestionnotimplemented is not an implemented theme hook so \Drupal::theme() service
    // suggestion_not_implemented is not an implemented theme hook so \Drupal::theme() service
    // should return FALSE instead of a string.
    $output = \Drupal::theme()->render(['suggestionnotimplemented'], []);
    $output = \Drupal::theme()->render(['suggestion_not_implemented'], []);
    $this->assertFalse($output, '\Drupal::theme() returns FALSE when a hook suggestion is not implemented.');
  }

+4 −4
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@
use Drupal\Composer\Composer;

/**
 * Demonstrate that Composer project templates are buildable as patched.
 * Demonstrate that Composer project templates can be built as patched.
 *
 * We have to use the packages.json fixture so that Composer will use the
 * in-codebase version of the project template.
@@ -243,11 +243,11 @@ public function testTemplateCreateProject($project, $package_dir, $docroot_dir)
    $repository_path = $this->getWorkspaceDirectory() . '/test_repository/packages.json';
    $this->makeTestPackage($repository_path, $simulated_core_version);

    $installed_composer_json = $this->getWorkspaceDirectory() . '/testproject/composer.json';
    $autoloader = $this->getWorkspaceDirectory() . '/testproject' . $docroot_dir . '/autoload.php';
    $installed_composer_json = $this->getWorkspaceDirectory() . '/test_project/composer.json';
    $autoloader = $this->getWorkspaceDirectory() . '/test_project' . $docroot_dir . '/autoload.php';
    $this->assertFileDoesNotExist($autoloader);

    $this->executeCommand("COMPOSER_HOME=$composer_home COMPOSER_ROOT_VERSION=$simulated_core_version composer create-project --no-ansi $project testproject $simulated_core_version -vvv --repository $repository_path");
    $this->executeCommand("COMPOSER_HOME=$composer_home COMPOSER_ROOT_VERSION=$simulated_core_version composer create-project --no-ansi $project test_project $simulated_core_version -vvv --repository $repository_path");
    $this->assertCommandSuccessful();
    // Check the output of the project creation for the absence of warnings
    // about any non-allowed composer plugins.
+5 −5
Original line number Diff line number Diff line
@@ -43,9 +43,9 @@ protected function prepareEnvironment() {
      ],
    ];
    // File API functions are not available yet.
    $path = $this->siteDirectory . '/profiles/my_distro';
    $path = $this->siteDirectory . '/profiles/my_distribution';
    mkdir($path, 0777, TRUE);
    file_put_contents("$path/my_distro.info.yml", Yaml::encode($this->info));
    file_put_contents("$path/my_distribution.info.yml", Yaml::encode($this->info));

    // Pre-configure hash salt.
    // Any string is valid, so simply use the class name of this test.
@@ -120,11 +120,11 @@ public function testInstalled() {
    $this->assertSession()->pageTextContains($this->rootUser->getAccountName());

    // Confirm that Drupal recognizes this distribution as the current profile.
    $this->assertEquals('my_distro', \Drupal::installProfile());
    $this->assertEquals('my_distro', $this->config('core.extension')->get('profile'), 'The install profile has been written to core.extension configuration.');
    $this->assertEquals('my_distribution', \Drupal::installProfile());
    $this->assertEquals('my_distribution', $this->config('core.extension')->get('profile'), 'The install profile has been written to core.extension configuration.');

    $this->rebuildContainer();
    $this->assertEquals('my_distro', \Drupal::installProfile());
    $this->assertEquals('my_distribution', \Drupal::installProfile());
  }

}
+5 −5
Original line number Diff line number Diff line
@@ -38,10 +38,10 @@ protected function prepareEnvironment() {
      ],
    ];
    // File API functions are not available yet.
    $path = $this->siteDirectory . '/profiles/my_distro';
    $path = $this->siteDirectory . '/profiles/my_distribution';
    mkdir($path, 0777, TRUE);
    file_put_contents("$path/my_distro.info.yml", Yaml::encode($this->info));
    file_put_contents("$path/my_distro.install", "<?php function my_distro_install() {\Drupal::entityTypeManager()->getStorage('path_alias')->create(['path' => '/user/1', 'alias' => '/root-user'])->save();}");
    file_put_contents("$path/my_distribution.info.yml", Yaml::encode($this->info));
    file_put_contents("$path/my_distribution.install", "<?php function my_distribution_install() {\Drupal::entityTypeManager()->getStorage('path_alias')->create(['path' => '/user/1', 'alias' => '/root-user'])->save();}");
  }

  /**
@@ -77,8 +77,8 @@ public function testInstalled() {
    $this->assertSession()->pageTextContains($this->rootUser->getAccountName());

    // Confirm that Drupal recognizes this distribution as the current profile.
    $this->assertEquals('my_distro', \Drupal::installProfile());
    $this->assertEquals('my_distro', $this->config('core.extension')->get('profile'), 'The install profile has been written to core.extension configuration.');
    $this->assertEquals('my_distribution', \Drupal::installProfile());
    $this->assertEquals('my_distribution', $this->config('core.extension')->get('profile'), 'The install profile has been written to core.extension configuration.');
  }

}
Loading