Issue #3185807 by andregp, quietone, lucienchalom, elber, yogeshmpawar, jungle, Tauany Bueno, tmaiochi, xjm, smustgrave: Fix or ignore some words starting with "w"
parent
76606546a3
commit
dbd0e756d8
|
@ -258,9 +258,9 @@ class Condition implements ConditionInterface, \Countable {
|
|||
$this->stringVersion = '( AND 1 = 0 )';
|
||||
|
||||
// Conceptually throwing an exception caused by user input is bad
|
||||
// as you result into a WSOD, which depending on your webserver
|
||||
// configuration can result into the assumption that your site is
|
||||
// broken.
|
||||
// as you result into a 'white screen of death', which depending on
|
||||
// your webserver configuration can result into the assumption that
|
||||
// your site is broken.
|
||||
// On top of that the database API relies on __toString() which
|
||||
// does not allow to throw exceptions.
|
||||
trigger_error('Invalid characters in query operator: ' . $condition['operator'], E_USER_ERROR);
|
||||
|
|
|
@ -10,9 +10,9 @@ use Twig\Cache\CacheInterface;
|
|||
/**
|
||||
* Provides an alternate cache storage for Twig using PhpStorage.
|
||||
*
|
||||
* This class is designed to work on setups with multiple webheads using a local
|
||||
* filesystem for the twig cache. When generating the cache key, a hash value
|
||||
* depending on the enabled extensions is included. This prevents stale
|
||||
* This class is designed to work on setups with multiple web heads using a
|
||||
* local filesystem for the twig cache. When generating the cache key, a hash
|
||||
* value depending on the enabled extensions is included. This prevents stale
|
||||
* templates from being reused when twig extensions are enabled or disabled.
|
||||
*
|
||||
* @see \Drupal\Core\DependencyInjection\Compiler\TwigExtensionPass
|
||||
|
|
|
@ -1341,7 +1341,6 @@ wcprops
|
|||
webassert
|
||||
webcal
|
||||
webflo
|
||||
webheads
|
||||
webhosting
|
||||
webmention
|
||||
webmozart
|
||||
|
@ -1350,19 +1349,14 @@ webroot
|
|||
webservers
|
||||
webtest
|
||||
whitespaces
|
||||
whos
|
||||
widthx
|
||||
wimoids
|
||||
wmet
|
||||
wmlscript
|
||||
wordprocessingml
|
||||
wordsafe
|
||||
wordword
|
||||
workspaceswitcher
|
||||
writability
|
||||
writeln
|
||||
wrongparam
|
||||
wsod
|
||||
wwwrun
|
||||
xbap
|
||||
xbitmap
|
||||
|
|
|
@ -34,7 +34,7 @@ use Symfony\Component\HttpFoundation\File\Exception\IniSizeFileException;
|
|||
use Symfony\Component\HttpFoundation\File\Exception\NoFileException;
|
||||
use Symfony\Component\HttpFoundation\File\Exception\PartialFileException;
|
||||
|
||||
// cspell:ignore abiword
|
||||
// cspell:ignore abiword widthx
|
||||
|
||||
/**
|
||||
* Implements hook_help().
|
||||
|
|
|
@ -187,7 +187,7 @@ class ImageStylesPathAndUrlTest extends BrowserTestBase {
|
|||
$this->drupalGet(str_replace(IMAGE_DERIVATIVE_TOKEN . '=', IMAGE_DERIVATIVE_TOKEN . '=Zo', $generate_url));
|
||||
$this->assertSession()->statusCodeEquals(404);
|
||||
// Change the parameter name so the token is missing.
|
||||
$this->drupalGet(str_replace(IMAGE_DERIVATIVE_TOKEN . '=', 'wrongparam=', $generate_url));
|
||||
$this->drupalGet(str_replace(IMAGE_DERIVATIVE_TOKEN . '=', 'wrong_parameter=', $generate_url));
|
||||
$this->assertSession()->statusCodeEquals(404);
|
||||
|
||||
// Check that the generated URL is the same when we pass in a relative path
|
||||
|
@ -306,7 +306,7 @@ class ImageStylesPathAndUrlTest extends BrowserTestBase {
|
|||
$nested_url = $this->style->buildUrl($generated_uri, $clean_url);
|
||||
$matches_expected_url_format = (boolean) preg_match('/styles\/' . $this->style->id() . '\/' . $scheme . '\/styles\/' . $this->style->id() . '\/' . $scheme . '/', $nested_url);
|
||||
$this->assertTrue($matches_expected_url_format, "URL for a derivative of an image style matches expected format.");
|
||||
$nested_url_with_wrong_token = str_replace(IMAGE_DERIVATIVE_TOKEN . '=', 'wrongparam=', $nested_url);
|
||||
$nested_url_with_wrong_token = str_replace(IMAGE_DERIVATIVE_TOKEN . '=', 'wrong_parameter=', $nested_url);
|
||||
$this->drupalGet($nested_url_with_wrong_token);
|
||||
$this->assertSession()->statusCodeEquals(404);
|
||||
// Check that this restriction cannot be bypassed by adding extra slashes
|
||||
|
|
|
@ -464,7 +464,7 @@ class TermTest extends ResourceTestBase {
|
|||
->setName('Lamoids')
|
||||
->save();
|
||||
Term::create(['vid' => Vocabulary::load('camelids')->id()])
|
||||
->setName('Wimoids')
|
||||
->setName('Camels')
|
||||
->save();
|
||||
|
||||
// Modify the entity under test to use the provided parent terms.
|
||||
|
|
|
@ -640,7 +640,7 @@ function system_requirements($phase) {
|
|||
}
|
||||
}
|
||||
|
||||
// Test configuration files and directory for writability.
|
||||
// Test if configuration files and directory are writable.
|
||||
if ($phase == 'runtime') {
|
||||
$conf_errors = [];
|
||||
// Find the site path. Kernel service is not always available at this point,
|
||||
|
|
|
@ -337,7 +337,7 @@ abstract class TermResourceTestBase extends EntityResourceTestBase {
|
|||
->setName('Lamoids')
|
||||
->save();
|
||||
Term::create(['vid' => Vocabulary::load('camelids')->id()])
|
||||
->setName('Wimoids')
|
||||
->setName('Camels')
|
||||
->save();
|
||||
|
||||
// Modify the entity under test to use the provided parent terms.
|
||||
|
|
|
@ -11,7 +11,7 @@ use Drupal\user\Entity\User;
|
|||
*
|
||||
* @group user
|
||||
*/
|
||||
class WhosOnlineBlockTest extends KernelTestBase {
|
||||
class WhoIsOnlineBlockTest extends KernelTestBase {
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
|
@ -71,7 +71,7 @@ class WhosOnlineBlockTest extends KernelTestBase {
|
|||
/**
|
||||
* Tests the Who's Online block.
|
||||
*/
|
||||
public function testWhosOnlineBlock() {
|
||||
public function testWhoIsOnlineBlock() {
|
||||
$request_time = \Drupal::time()->getRequestTime();
|
||||
// Generate users.
|
||||
$user1 = User::create([
|
|
@ -7,7 +7,7 @@ use Drupal\Tests\views\Functional\ViewTestBase;
|
|||
use Drupal\views\Views;
|
||||
|
||||
/**
|
||||
* Tests the views page display plugin as webtest.
|
||||
* Tests the views page display plugin.
|
||||
*
|
||||
* @group views
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue