Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
40b0e163
Commit
40b0e163
authored
May 29, 2020
by
xjm
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#3138774
by sja112, mohrerao, shalinigaur: Fix "DoesNot" relevant typos in core
parent
075cd952
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
core/modules/jsonapi/src/Exception/EntityAccessDeniedHttpException.php
...jsonapi/src/Exception/EntityAccessDeniedHttpException.php
+1
-1
core/modules/jsonapi/tests/src/Functional/JsonApiFunctionalTest.php
...es/jsonapi/tests/src/Functional/JsonApiFunctionalTest.php
+2
-2
core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php
...modules/jsonapi/tests/src/Functional/ResourceTestBase.php
+1
-1
core/tests/Drupal/KernelTests/Core/Database/SelectTest.php
core/tests/Drupal/KernelTests/Core/Database/SelectTest.php
+2
-2
core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php
...pal/Tests/Component/Annotation/Doctrine/DocParserTest.php
+1
-1
core/tests/Drupal/Tests/Core/Cache/ChainedFastBackendTest.php
.../tests/Drupal/Tests/Core/Cache/ChainedFastBackendTest.php
+1
-1
No files found.
core/modules/jsonapi/src/Exception/EntityAccessDeniedHttpException.php
View file @
40b0e163
...
...
@@ -30,7 +30,7 @@ class EntityAccessDeniedHttpException extends CacheableAccessDeniedHttpException
* The error which caused the 403.
*
* The error contains:
* - entity: The entity which the current user doe
ns'
t have access to.
* - entity: The entity which the current user doe
s no
t have access to.
* - pointer: A path in the JSON:API response structure pointing to the
* entity.
* - reason: (Optional) An optional reason for this failure.
...
...
core/modules/jsonapi/tests/src/Functional/JsonApiFunctionalTest.php
View file @
40b0e163
...
...
@@ -862,7 +862,7 @@ public function testWrite() {
'id'
=>
$uuid
,
'type'
=>
'node--article'
,
'attributes'
=>
[
'field_that_does
n
t_exist'
=>
'foobar'
,
'field_that_does
_no
t_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_does
n
t_exist does not exist on the node--article resource type."
,
$this
->
assertEquals
(
"The attribute field_that_does
_no
t_exist does not exist on the node--article resource type."
,
$updated_response
[
'errors'
][
'0'
][
'detail'
]);
// 14. Successful DELETE.
$response
=
$this
->
request
(
'DELETE'
,
$individual_url
,
[
...
...
core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php
View file @
40b0e163
...
...
@@ -1118,7 +1118,7 @@ public function testCollection() {
'related_author_id'
=>
[
'operator'
=>
'<>'
,
'path'
=>
'field_jsonapi_test_entity_ref.status'
,
'value'
=>
'does
n
t@matter.com'
,
'value'
=>
'does
_no
t@matter.com'
,
],
],
]);
...
...
core/tests/Drupal/KernelTests/Core/Database/SelectTest.php
View file @
40b0e163
...
...
@@ -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_does
n
t_exist'
,
't'
,
$options
)
$this
->
connection
->
select
(
'some_table_that_does
_no
t_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_does
n
t_exist'
,
't'
)
$this
->
connection
->
select
(
'some_table_that_does
_no
t_exist'
,
't'
)
->
fields
(
't'
)
->
countQuery
()
->
execute
();
...
...
core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php
View file @
40b0e163
...
...
@@ -1025,7 +1025,7 @@ public function testAnnotationDontAcceptSingleQuotes()
/**
* @group DCOM-41
*/
public
function
testAnnotationDoes
n
tThrowExceptionWhenAtSignIsNotFollowedByIdentifier
()
public
function
testAnnotationDoes
No
tThrowExceptionWhenAtSignIsNotFollowedByIdentifier
()
{
$parser
=
new
DocParser
();
$result
=
$parser
->
parse
(
"'@'"
);
...
...
core/tests/Drupal/Tests/Core/Cache/ChainedFastBackendTest.php
View file @
40b0e163
...
...
@@ -36,7 +36,7 @@ class ChainedFastBackendTest extends UnitTestCase {
/**
* Tests a get() on the fast backend, with no hit on the consistent backend.
*/
public
function
testGetDoes
n
tHitConsistentBackend
()
{
public
function
testGetDoes
No
tHitConsistentBackend
()
{
$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.
...
...
xjm
@xjm
mentioned in commit
ea471e3c
·
May 29, 2020
mentioned in commit
ea471e3c
mentioned in commit ea471e3c80cc14f378a51d6759676ae081cd93bb
Toggle commit list
xjm
@xjm
mentioned in commit
3ecd38ee
·
May 29, 2020
mentioned in commit
3ecd38ee
mentioned in commit 3ecd38eeef47a2abe5d09bb13f4055b84ea34849
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment