Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
229
Merge Requests
229
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
86e95963
Unverified
Commit
86e95963
authored
Jul 16, 2020
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#3138749
by jackniu, dww, jungle: Fix "cache" related typos
parent
9b9e1f08
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
core/modules/content_moderation/tests/src/Kernel/ContentModerationAccessTest.php
...deration/tests/src/Kernel/ContentModerationAccessTest.php
+1
-1
core/modules/views/tests/modules/views_test_cacheable_metadata_calculation/src/Plugin/views/access/CacheableMetadataCalculationTest.php
.../Plugin/views/access/CacheableMetadataCalculationTest.php
+2
-2
core/modules/views/tests/src/Kernel/CacheableMetadataCalculationTest.php
...ews/tests/src/Kernel/CacheableMetadataCalculationTest.php
+5
-5
No files found.
core/modules/content_moderation/tests/src/Kernel/ContentModerationAccessTest.php
View file @
86e95963
...
...
@@ -61,7 +61,7 @@ protected function setUp() {
/**
* Tests access cacheability.
*/
public
function
testAccessCacheablity
()
{
public
function
testAccessCacheab
i
lity
()
{
$node
=
$this
->
createNode
([
'type'
=>
'page'
]);
/** @var \Drupal\user\RoleInterface $authenticated */
...
...
core/modules/views/tests/modules/views_test_cacheable_metadata_calculation/src/Plugin/views/access/CachableMetadataCalculationTest.php
→
core/modules/views/tests/modules/views_test_cacheable_metadata_calculation/src/Plugin/views/access/Cach
e
ableMetadataCalculationTest.php
View file @
86e95963
...
...
@@ -19,7 +19,7 @@
* help = @Translation("Provides a test access plugin that reports when cacheable metadata is being calculated.")
* )
*/
class
CachableMetadataCalculationTest
extends
AccessPluginBase
implements
CacheableDependencyInterface
{
class
Cach
e
ableMetadataCalculationTest
extends
AccessPluginBase
implements
CacheableDependencyInterface
{
/**
* The state service.
...
...
@@ -29,7 +29,7 @@ class CachableMetadataCalculationTest extends AccessPluginBase implements Cachea
protected
$state
;
/**
* Constructs a CachableMetadataCalculationTest access plugin.
* Constructs a Cach
e
ableMetadataCalculationTest access plugin.
*
* @param array $configuration
* A configuration array containing information about the plugin instance.
...
...
core/modules/views/tests/src/Kernel/CachableMetadataCalculationTest.php
→
core/modules/views/tests/src/Kernel/Cach
e
ableMetadataCalculationTest.php
View file @
86e95963
...
...
@@ -9,7 +9,7 @@
*
* @group views
*/
class
CachableMetadataCalculationTest
extends
KernelTestBase
{
class
Cach
e
ableMetadataCalculationTest
extends
KernelTestBase
{
/**
* The ID of the view used in the test.
...
...
@@ -72,21 +72,21 @@ public function testCacheableMetadataCalculation() {
// metadata to be recalculated.
$this
->
enableModules
([
self
::
TEST_MODULE
]);
$this
->
installConfig
([
self
::
TEST_MODULE
]);
$this
->
assertCachebleMetadataHasBeenCalculated
(
FALSE
);
$this
->
assertCache
a
bleMetadataHasBeenCalculated
(
FALSE
);
// When a view is saved normally we have to recalculate the cacheability
// metadata, since it is possible changes have been made to the view that
// affect cacheability.
$view
=
$this
->
entityTypeManager
->
getStorage
(
'view'
)
->
load
(
self
::
TEST_VIEW_ID
);
$view
->
save
();
$this
->
assertCachebleMetadataHasBeenCalculated
(
TRUE
);
$this
->
assertCache
a
bleMetadataHasBeenCalculated
(
TRUE
);
$this
->
resetState
();
// When a view is being saved due to config being synchronized, the
// cacheability metadata doesn't change so it should not be recalculated.
$view
->
setSyncing
(
TRUE
);
$view
->
save
();
$this
->
assertCachebleMetadataHasBeenCalculated
(
FALSE
);
$this
->
assertCache
a
bleMetadataHasBeenCalculated
(
FALSE
);
}
/**
...
...
@@ -96,7 +96,7 @@ public function testCacheableMetadataCalculation() {
* TRUE if it is expected that the cacheability metadata has been
* calculated. FALSE otherwise.
*/
protected
function
assertCachebleMetadataHasBeenCalculated
(
$expected_result
)
{
protected
function
assertCache
a
bleMetadataHasBeenCalculated
(
$expected_result
)
{
$this
->
state
->
resetCache
();
$this
->
assertEquals
(
$expected_result
,
$this
->
state
->
get
(
'views_test_cacheable_metadata_has_been_accessed'
));
}
...
...
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