Commit ea471e3c authored by xjm's avatar xjm
Browse files

Issue #3138774 by sja112, mohrerao, shalinigaur: Fix "DoesNot" relevant typos in core

(cherry picked from commit 40b0e163)
parent 1467e54d
......@@ -30,7 +30,7 @@ class EntityAccessDeniedHttpException extends CacheableAccessDeniedHttpException
* The error which caused the 403.
*
* The error contains:
* - entity: The entity which the current user doens't have access to.
* - entity: The entity which the current user does not have access to.
* - pointer: A path in the JSON:API response structure pointing to the
* entity.
* - reason: (Optional) An optional reason for this failure.
......
......@@ -862,7 +862,7 @@ public function testWrite() {
'id' => $uuid,
'type' => 'node--article',
'attributes' => [
'field_that_doesnt_exist' => 'foobar',
'field_that_does_not_exist' => 'foobar',
],
],
];
......@@ -876,7 +876,7 @@ public function testWrite() {
]);
$updated_response = Json::decode($response->getBody()->__toString());
$this->assertEquals(422, $response->getStatusCode());
$this->assertEquals("The attribute field_that_doesnt_exist does not exist on the node--article resource type.",
$this->assertEquals("The attribute field_that_does_not_exist does not exist on the node--article resource type.",
$updated_response['errors']['0']['detail']);
// 14. Successful DELETE.
$response = $this->request('DELETE', $individual_url, [
......
......@@ -1118,7 +1118,7 @@ public function testCollection() {
'related_author_id' => [
'operator' => '<>',
'path' => 'field_jsonapi_test_entity_ref.status',
'value' => 'doesnt@matter.com',
'value' => 'does_not@matter.com',
],
],
]);
......
......@@ -559,7 +559,7 @@ public function testInvalidSelectCount() {
// Normally it would throw an exception but we are suppressing
// it with the throw_exception option.
$options['throw_exception'] = FALSE;
$this->connection->select('some_table_that_doesnt_exist', 't', $options)
$this->connection->select('some_table_that_does_not_exist', 't', $options)
->fields('t')
->countQuery()
->execute();
......@@ -573,7 +573,7 @@ public function testInvalidSelectCount() {
try {
// This query will fail because the table does not exist.
$this->connection->select('some_table_that_doesnt_exist', 't')
$this->connection->select('some_table_that_does_not_exist', 't')
->fields('t')
->countQuery()
->execute();
......
......@@ -1025,7 +1025,7 @@ public function testAnnotationDontAcceptSingleQuotes()
/**
* @group DCOM-41
*/
public function testAnnotationDoesntThrowExceptionWhenAtSignIsNotFollowedByIdentifier()
public function testAnnotationDoesNotThrowExceptionWhenAtSignIsNotFollowedByIdentifier()
{
$parser = new DocParser();
$result = $parser->parse("'@'");
......
......@@ -36,7 +36,7 @@ class ChainedFastBackendTest extends UnitTestCase {
/**
* Tests a get() on the fast backend, with no hit on the consistent backend.
*/
public function testGetDoesntHitConsistentBackend() {
public function testGetDoesNotHitConsistentBackend() {
$consistent_cache = $this->createMock('Drupal\Core\Cache\CacheBackendInterface');
$timestamp_cid = ChainedFastBackend::LAST_WRITE_TIMESTAMP_PREFIX . 'cache_foo';
// Use the request time because that is what we will be comparing against.
......
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