Пример #1
0
 /**
  * @dataProvider serverNameProvider
  */
 public function testGetHostname($servername, $env, $hostname)
 {
     $_SERVER['SERVER_NAME'] = $servername;
     $this->assertEquals($hostname, Evolution::getHostname());
 }
Пример #2
0
$table_prefix = 'wp_';
/**
 * For developers: WordPress debugging mode.
 *
 * Change this to true to enable the display of notices during development.
 * It is strongly recommended that plugin and theme developers use WP_DEBUG
 * in their development environments.
 */
define('WP_DEBUG', Evolution::getEnv() === 'local');
/**
 * Custom overrides
 */
define('AUTOMATIC_UPDATER_DISABLED', true);
define('CONTENT_DIR', '/wp-content');
define('DISABLE_WP_CRON', true);
define('DISALLOW_FILE_EDIT', true);
define('FS_METHOD', 'direct');
define('WP_AUTO_UPDATE_CORE', false);
define('WP_CONTENT_DIR', dirname(__FILE__) . CONTENT_DIR);
define('WP_CONTENT_URL', CONTENT_DIR);
define('WP_ENV', Evolution::getEnv());
define('WP_HOME', 'http://' . Evolution::getHostname() . '/');
define('WP_POST_REVISIONS', 5);
define('WP_SITEURL', 'http://' . Evolution::getHostname() . '/wp');
/* That's all, stop editing! Happy blogging. */
/** Absolute path to the WordPress directory. */
if (!defined('ABSPATH')) {
    define('ABSPATH', dirname(__FILE__) . '/wp/');
}
/** Sets up WordPress vars and included files. */
require_once ABSPATH . 'wp-settings.php';