Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
juicerio
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
juicerio
Commits
8f6a0cd1
Commit
8f6a0cd1
authored
2 years ago
by
Project Update Bot
Committed by
Ilcho Vuchkov
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3329322
by Project Update Bot, vuil: Automated Drupal 10 compatibility fixes
parent
fde2b61d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/src/Functional/JuicerSimpleTest.php
+5
-5
5 additions, 5 deletions
tests/src/Functional/JuicerSimpleTest.php
tests/src/Functional/LoadTest.php
+3
-3
3 additions, 3 deletions
tests/src/Functional/LoadTest.php
with
8 additions
and
8 deletions
tests/src/Functional/JuicerSimpleTest.php
+
5
−
5
View file @
8f6a0cd1
...
...
@@ -40,7 +40,7 @@ class JuicerSimpleTest extends BrowserTestBase {
*
* @var array
*/
static
publ
ic
$modules
=
[
'juicerio'
];
protected
stat
ic
$modules
=
[
'juicerio'
];
/**
* The installation profile to use with this test.
...
...
@@ -58,10 +58,10 @@ class JuicerSimpleTest extends BrowserTestBase {
* Enable Juicer and see if it can return its main
* page. Should return a 403.
*/
public
function
testJuicerAnonConfigFormMenu
()
{
public
function
testJuicerAnonConfigFormMenu
()
:
void
{
// Verify that anonymous cannot access the config page.
$this
->
drupalGet
(
'admin/config/services/juicerio'
);
$this
->
assert
R
es
ponse
(
403
);
$this
->
assert
S
es
sion
()
->
statusCodeEquals
(
403
);
}
/**
...
...
@@ -70,7 +70,7 @@ class JuicerSimpleTest extends BrowserTestBase {
* Enable Juicer and see if it can successfully return its main
* page.
*/
public
function
testJuicerConfigFormMenu
()
{
public
function
testJuicerConfigFormMenu
()
:
void
{
// Verify that authenticated users with correct perms can access
// the config page.
// Create a user.
...
...
@@ -79,7 +79,7 @@ class JuicerSimpleTest extends BrowserTestBase {
$this
->
drupalLogin
(
$test_user
);
$this
->
drupalGet
(
'admin/config/services/juicerio'
);
$this
->
assert
R
es
ponse
(
200
);
$this
->
assert
S
es
sion
()
->
statusCodeEquals
(
200
);
}
}
This diff is collapsed.
Click to expand it.
tests/src/Functional/LoadTest.php
+
3
−
3
View file @
8f6a0cd1
...
...
@@ -22,7 +22,7 @@ class LoadTest extends BrowserTestBase {
*
* @var array
*/
p
ublic
static
$modules
=
[
'juicerio'
];
p
rotected
static
$modules
=
[
'juicerio'
];
/**
* A user with permission to administer site configuration.
...
...
@@ -34,7 +34,7 @@ class LoadTest extends BrowserTestBase {
/**
* {@inheritdoc}
*/
protected
function
setUp
()
{
protected
function
setUp
()
:
void
{
parent
::
setUp
();
$this
->
user
=
$this
->
drupalCreateUser
([
'administer site configuration'
]);
$this
->
drupalLogin
(
$this
->
user
);
...
...
@@ -43,7 +43,7 @@ class LoadTest extends BrowserTestBase {
/**
* Tests that the home page loads with a 200 response.
*/
public
function
testLoad
()
{
public
function
testLoad
()
:
void
{
$this
->
drupalGet
(
Url
::
fromRoute
(
'<front>'
));
$this
->
assertSession
()
->
statusCodeEquals
(
200
);
}
...
...
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