Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-builder
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Terraform modules
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
wp-builder
Merge requests
!16
Feature/ci files
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Feature/ci files
feature/ci-files
into
master
Overview
0
Commits
3
Pipelines
1
Changes
7
Merged
Krzysztof Dyszczyk
requested to merge
feature/ci-files
into
master
6 years ago
Overview
0
Commits
3
Pipelines
1
Changes
7
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
0ff251fd
3 commits,
6 years ago
7 files
+
165
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
tests/integration/bootstrap.php
0 → 100644
+
27
−
0
View file @ 0ff251fd
Edit in single-file editor
Open in Web IDE
<?php
ini_set
(
'error_reporting'
,
E_ALL
);
// or error_reporting(E_ALL);
ini_set
(
'display_errors'
,
'1'
);
ini_set
(
'display_startup_errors'
,
'1'
);
// disable xdebug backtrace
if
(
function_exists
(
'xdebug_disable'
)
)
{
xdebug_disable
();
}
if
(
getenv
(
'PLUGIN_PATH'
)
!==
false
)
{
define
(
'PLUGIN_PATH'
,
getenv
(
'PLUGIN_PATH'
)
);
}
else
{
define
(
'PLUGIN_PATH'
,
__DIR__
.
DIRECTORY_SEPARATOR
.
'..'
.
DIRECTORY_SEPARATOR
.
'..'
.
DIRECTORY_SEPARATOR
);
}
require_once
(
getenv
(
'WP_DEVELOP_DIR'
)
.
'/tests/phpunit/includes/functions.php'
);
tests_add_filter
(
'muplugins_loaded'
,
function
()
{
$plugins_to_active
[]
=
'hello.php'
;
update_option
(
'active_plugins'
,
$plugins_to_active
);
},
100
);
putenv
(
'WP_TESTS_DIR='
.
getenv
(
'WP_DEVELOP_DIR'
)
.
'/tests/phpunit'
);
require_once
(
getenv
(
'WC_DEVELOP_DIR'
)
.
'/tests/bootstrap.php'
);
Loading