Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
memcache
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
memcache
Commits
ce852139
Commit
ce852139
authored
8 months ago
by
Eric Smith
Committed by
Jakob P
8 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2996055
: Test coverage
parent
63aa2158
Branches
1.0.x
Tags
1.0.1
1 merge request
!23
Set tolerance to 0 during tests
Pipeline
#178638
failed
8 months ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/src/Kernel/MemcacheBackendTest.php
+12
-1
12 additions, 1 deletion
tests/src/Kernel/MemcacheBackendTest.php
with
12 additions
and
1 deletion
tests/src/Kernel/MemcacheBackendTest.php
+
12
−
1
View file @
ce852139
...
...
@@ -2,6 +2,8 @@
namespace
Drupal\Tests\memcache\Kernel
;
use
Drupal\Core\DependencyInjection\ContainerBuilder
;
use
Drupal\Core\DependencyInjection\ServiceModifierInterface
;
use
Drupal\KernelTests\Core\Cache\GenericCacheBackendUnitTestBase
;
use
Drupal\memcache\MemcacheBackendFactory
;
...
...
@@ -10,7 +12,7 @@ use Drupal\memcache\MemcacheBackendFactory;
*
* @group memcache
*/
class
MemcacheBackendTest
extends
GenericCacheBackendUnitTestBase
{
class
MemcacheBackendTest
extends
GenericCacheBackendUnitTestBase
implements
ServiceModifierInterface
{
/**
* Modules to enable.
...
...
@@ -19,6 +21,15 @@ class MemcacheBackendTest extends GenericCacheBackendUnitTestBase {
*/
public
static
$modules
=
[
'system'
,
'memcache'
];
/**
* {@inheritdoc}
*/
public
function
alter
(
ContainerBuilder
$container
)
{
$service_definition
=
$container
->
getDefinition
(
'memcache.timestamp.invalidator.bin'
);
// Set tolerance to 0 for timestamp invalidator.
$service_definition
->
setArgument
(
2
,
0
);
}
/**
* Creates a new instance of DatabaseBackend.
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment