Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
automatic_updates
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
automatic_updates
Merge requests
!339
Issue
#3285631
: Make it impossible to call CronUpdater::begin() directly
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3285631
: Make it impossible to call CronUpdater::begin() directly
issue/automatic_updates-3285631:3285631-make-it-impossible
into
8.x-2.x
Overview
11
Commits
12
Pipelines
0
Changes
1
Merged
Theresa Grannum
requested to merge
issue/automatic_updates-3285631:3285631-make-it-impossible
into
8.x-2.x
2 years ago
Overview
11
Commits
12
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
dbb07e9d
Prev
Next
Show latest version
1 file
+
3
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
dbb07e9d
Fix CronUpdaterTest
· dbb07e9d
Adam G-H
authored
2 years ago
tests/src/Kernel/CronUpdaterTest.php
+
3
−
7
Options
@@ -331,14 +331,10 @@ class CronUpdaterTest extends AutomaticUpdatesKernelTestBase {
}
/**
* Tests that
the c
ron
u
pdater
throws an exception if started while disabled
.
* Tests that
C
ron
U
pdater
::begin() unconditionally throws an exception
.
*/
public
function
testExceptionWhenDisabled
():
void
{
$this
->
config
(
'automatic_updates.settings'
)
->
set
(
'cron'
,
CronUpdater
::
DISABLED
)
->
save
();
$this
->
expectExceptionMessage
(
'Unattended updates are disabled.'
);
public
function
testBeginThrowsException
():
void
{
$this
->
expectExceptionMessage
(
CronUpdater
::
class
.
'::begin() cannot be called directly.'
);
$this
->
container
->
get
(
'automatic_updates.cron_updater'
)
->
begin
([
'drupal'
=>
'9.8.1'
]);
}
Loading