Commit bedbd0a2 authored by jhodgdon's avatar jhodgdon

Issue #2329703 by maximpodorov: Fix spelling in varous files

parent 2a287f31
......@@ -415,7 +415,7 @@ public function providerTestTimestamp() {
'expected_timezone' => 'UTC',
'expected_offset' => 0,
),
'transorm' => array(
'transform' => array(
'timezone' => 'America/Los_Angeles',
'format' => 'c',
'expected_date' => '1969-12-31T16:00:00-08:00',
......
......@@ -87,7 +87,7 @@ public static function providerTestValidStep() {
array(6, 5/7, FALSE),
array(10.3, 10.25, FALSE),
// Step mismatches very close to beeing valid.
// Step mismatches very close to being valid.
array(70 + 9e-7, 10 + 9e-7, FALSE),
array(1936.5, 3e-8, FALSE),
);
......
......@@ -493,7 +493,7 @@ public function testConvertToUtf8($data, $encoding, $expected) {
* Provides data to self::testConvertToUtf8().
*
* @return array
* An array of arrays, each containg the parameters to
* An array of arrays, each containing the parameters to
* self::testConvertUtf8(). }
*/
public function providerTestConvertToUtf8() {
......
......@@ -54,7 +54,7 @@ public function testAddCssCommand() {
}
/**
* Tests that AfterCommand objecst can be constructed and rendered.
* Tests that AfterCommand objects can be constructed and rendered.
*/
public function testAfterCommand() {
$command = new AfterCommand('#page-title', '<p>New Text!</p>', array('my-setting' => 'setting'));
......
......@@ -61,7 +61,7 @@ public function providerTestPercentages() {
// The same logic holds for 1/200: we should get 0.5%.
array(200, 1, '0.5'),
// Numbers that come out evenly, such as 50/200, should be forced to have
// extra digits for consistancy.
// extra digits for consistency.
array(200, 50, '25.0'),
// Regardless of number of digits we're using, 100% should always just be
// 100%.
......
......@@ -23,7 +23,7 @@ class BlockBaseTest extends UnitTestCase {
* @see \Drupal\Core\Block\BlockBase::getMachineNameSuggestion().
*/
public function testGetMachineNameSuggestion() {
$transliteraton = $this->getMockBuilder('Drupal\Core\Transliteration\PHPTransliteration')
$transliteration = $this->getMockBuilder('Drupal\Core\Transliteration\PHPTransliteration')
// @todo Inject the module handler into PHPTransliteration.
->setMethods(array('readLanguageOverrides'))
->getMock();
......@@ -42,7 +42,7 @@ public function testGetMachineNameSuggestion() {
'provider' => 'block_test',
);
$block_base = new TestBlockInstantiation($config, 'test_block_instantiation', $definition);
$block_base->setTransliteration($transliteraton);
$block_base->setTransliteration($transliteration);
$this->assertEquals('adminlabel', $block_base->getMachineNameSuggestion());
// Test with more unicodes.
......@@ -51,7 +51,7 @@ public function testGetMachineNameSuggestion() {
'provider' => 'block_test',
);
$block_base = new TestBlockInstantiation($config, 'test_block_instantiation', $definition);
$block_base->setTransliteration($transliteraton);
$block_base->setTransliteration($transliteration);
$this->assertEquals('uberawesome', $block_base->getMachineNameSuggestion());
}
......
......@@ -83,7 +83,7 @@ public function testGetMultipleOnPrimedCache() {
}
/**
* Test fall through to file storage in CachedStorage::readMulitple().
* Test fall through to file storage in CachedStorage::readMultiple().
*/
public function testGetMultipleOnPartiallyPrimedCache() {
$configNames = array(
......
......@@ -64,12 +64,12 @@ public function providerTestParseMessagePlaceholders() {
array('message' => 'User @username created', 'context' => array('@username' => 'Dries')),
array('message' => 'User @username created', 'context' => array('@username' => 'Dries')),
),
// Messsage without placeholders but wildcard characters.
// Message without placeholders but wildcard characters.
array(
array('message' => 'User W-\\};~{&! created @', 'context' => array('' => '')),
array('message' => 'User W-\\};~{&! created @', 'context' => array()),
),
// Messsage with double PSR3 style messages.
// Message with double PSR3 style messages.
array(
array('message' => 'Test {with} two {encapsuled} strings', 'context' => array('with' => 'together', 'encapsuled' => 'awesome')),
array('message' => 'Test @with two @encapsuled strings', 'context' => array('@with' => 'together', '@encapsuled' => 'awesome')),
......
......@@ -116,7 +116,7 @@ public function providerTestLog() {
// No request or account.
$cases [] = array(
function ($context) {
return $context['channel'] == 'test' && empty($contex['uid']) && empty($context['ip']);
return $context['channel'] == 'test' && empty($context['uid']) && empty($context['ip']);
},
);
// With account but not request. Since the request is not available the
......@@ -131,7 +131,7 @@ function ($context) {
// With request but not account.
$cases [] = array(
function ($context) {
return $context['ip'] === '127.0.0.1' && empty($contex['uid']);
return $context['ip'] === '127.0.0.1' && empty($context['uid']);
},
$request_mock,
);
......
......@@ -96,7 +96,7 @@ protected function getLocalTaskManager($module_dirs, $route_name, $route_params)
$property = new \ReflectionProperty('Drupal\Core\Menu\LocalTaskManager', 'moduleHandler');
$property->setAccessible(TRUE);
$property->setValue($manager, $module_handler);
// Set all the modules as being existant.
// Set all the modules as being existent.
$module_handler->expects($this->any())
->method('moduleExists')
->will($this->returnCallback(function ($module) use ($module_dirs) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment