Completed
Push — add/double-encode-message ( 8b6530...2d4e84 )
by
unknown
14:26 queued 05:57
created

docker/config/wp-tests-config.php (3 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
/* Path to the WordPress codebase you'd like to test. Add a forward slash in the end. */
4
define( 'ABSPATH', '/var/www/html/' );
5
6
/*
7
 * Path to the theme to test with.
8
 *
9
 * The 'default' theme is symlinked from test/phpunit/data/themedir1/default into
10
 * the themes directory of the WordPress installation defined above.
11
 */
12
define( 'WP_DEFAULT_THEME', 'default' );
13
14
// Test with multisite enabled.
15
// Alternatively, use the tests/phpunit/multisite.xml configuration file.
16
// define( 'WP_TESTS_MULTISITE', true );
17
18
// Force known bugs to be run.
19
// Tests with an associated Trac ticket that is still open are normally skipped.
20
// define( 'WP_TESTS_FORCE_KNOWN_BUGS', true );
21
22
// Test with WordPress debug mode (default).
23
define( 'WP_DEBUG', true );
24
25
// Enable error logging for tests
26
define( 'WP_DEBUG_LOG', true );
27
28
// Additional constants for better error log
29
@error_reporting( E_ALL );
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
30
@ini_set( 'log_errors', true );
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
31
@ini_set( 'log_errors_max_len', '0' );
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
32
33
define( 'WP_DEBUG_DISPLAY', false );
34
define( 'CONCATENATE_SCRIPTS', false );
35
define( 'SCRIPT_DEBUG', true );
36
define( 'SAVEQUERIES', true );
37
38
// ** MySQL settings ** //
39
40
// This configuration file will be used by the copy of WordPress being tested.
41
// wordpress/wp-config.php will be ignored.
42
43
// WARNING WARNING WARNING!
44
// These tests will DROP ALL TABLES in the database with the prefix named below.
45
// DO NOT use a production database or one that is shared with something else.
46
47
define( 'DB_NAME', getenv( 'MYSQL_DATABASE' ) );
48
define( 'DB_USER', getenv( 'MYSQL_USER' ) );
49
define( 'DB_PASSWORD', getenv( 'MYSQL_PASSWORD' ) );
50
define( 'DB_HOST', getenv( 'MYSQL_HOST' ) );
51
define( 'DB_CHARSET', 'utf8' );
52
define( 'DB_COLLATE', '' );
53
54
/**#@+
55
 * Authentication Unique Keys and Salts.
56
 *
57
 * Change these to different unique phrases!
58
 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
59
 */
60
define( 'AUTH_KEY',         'put your unique phrase here' );
61
define( 'SECURE_AUTH_KEY',  'put your unique phrase here' );
62
define( 'LOGGED_IN_KEY',    'put your unique phrase here' );
63
define( 'NONCE_KEY',        'put your unique phrase here' );
64
define( 'AUTH_SALT',        'put your unique phrase here' );
65
define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );
66
define( 'LOGGED_IN_SALT',   'put your unique phrase here' );
67
define( 'NONCE_SALT',       'put your unique phrase here' );
68
69
$table_prefix = 'wptests_';   // Only numbers, letters, and underscores please!
70
71
define( 'WP_TESTS_DOMAIN', 'example.org' );
72
define( 'WP_TESTS_EMAIL', '[email protected]' );
73
define( 'WP_TESTS_TITLE', 'Test Blog' );
74
75
define( 'WP_PHP_BINARY', 'php' );
76
77
define( 'WPLANG', '' );
78