Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-plugin-flow-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
Library
wp-plugin-flow-common
Merge requests
!8
bugfix(tests): unit
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
bugfix(tests): unit
bugfix/plugin-text-domain-wp-6.7-tests
into
master
Overview
0
Commits
2
Pipelines
2
Changes
5
Merged
Grzegorz Rola
requested to merge
bugfix/plugin-text-domain-wp-6.7-tests
into
master
8 months ago
Overview
0
Commits
2
Pipelines
2
Changes
5
0
0
Merge request reports
Viewing commit
94196612
Prev
Next
Show latest version
5 files
+
19
−
11
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
94196612
bugfix(tests): unit
· 94196612
Grzegorz Rola
authored
8 months ago
tests/unit/Test_Plugin_Bootstrap.php
+
6
−
2
View file @ 94196612
Edit in single-file editor
Open in Web IDE
Show full file
@@ -9,7 +9,7 @@ class Test_Plugin_Bootstrap extends \WP_Mock\Tools\TestCase {
const
WP_VERSION
=
5.5
;
public
function
setUp
()
{
public
function
setUp
()
:
void
{
WP_Mock
::
setUp
();
WP_Mock
::
userFunction
(
'get_locale'
,
@@ -34,11 +34,15 @@ class Test_Plugin_Bootstrap extends \WP_Mock\Tools\TestCase {
[
'return'
=>
'whatever'
,
]
);
WP_Mock
::
userFunction
(
'wp_using_ext_object_cache'
,
[
'return'
=>
false
,
]
);
!
defined
(
'WP_PLUGIN_DIR'
)
&&
define
(
'WP_PLUGIN_DIR'
,
__DIR__
.
'/../../Stub/'
);
}
public
function
tearDown
()
{
public
function
tearDown
()
:
void
{
WP_Mock
::
tearDown
();
}
Loading