1
0

wp-config.php 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. /* Path to the WordPress codebase you'd like to test. Add a forward slash in the end. */
  3. define( 'ABSPATH', dirname( __DIR__ ) . '/wordpress/' );
  4. // Configure WordPress to use the src directory for wp-content to use the SQLite DB driver.
  5. define( 'WP_CONTENT_DIR', dirname( __DIR__ ) . '/src' );
  6. // Configure the file to use for the database.
  7. define( 'DB_DIR', __DIR__ );
  8. define( 'DB_FILE', 'database.sqlite');
  9. /*
  10. * Path to the theme to test with.
  11. *
  12. * The 'default' theme is symlinked from test/phpunit/data/themedir1/default into
  13. * the themes directory of the WordPress installation defined above.
  14. */
  15. define( 'WP_DEFAULT_THEME', 'default' );
  16. // Test with multisite enabled.
  17. // Alternatively, use the tests/phpunit/multisite.xml configuration file.
  18. // define( 'WP_TESTS_MULTISITE', true );
  19. // Test with WordPress debug mode (default).
  20. define( 'WP_DEBUG', true );
  21. // ** MySQL settings ** //
  22. // This configuration file will be used by the copy of WordPress being tested.
  23. // wordpress/wp-config.php will be ignored.
  24. // WARNING WARNING WARNING!
  25. // These tests will DROP ALL TABLES in the database with the prefix named below.
  26. // DO NOT use a production database or one that is shared with something else.
  27. // SQLite does not require any connection information.
  28. define( 'DB_NAME' , 'null-db-name' );
  29. define( 'DB_USER' , 'null-db-user' );
  30. define( 'DB_PASSWORD' , 'null-db-pass' );
  31. define( 'DB_HOST' , 'null-db-host' );
  32. define( 'DB_CHARSET' , 'utf8' );
  33. define( 'DB_COLLATE' , '' );
  34. /**#@+
  35. * Authentication Unique Keys and Salts.
  36. *
  37. * Change these to different unique phrases!
  38. * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
  39. */
  40. define( 'AUTH_KEY', 'put your unique phrase here' );
  41. define( 'SECURE_AUTH_KEY', 'put your unique phrase here' );
  42. define( 'LOGGED_IN_KEY', 'put your unique phrase here' );
  43. define( 'NONCE_KEY', 'put your unique phrase here' );
  44. define( 'AUTH_SALT', 'put your unique phrase here' );
  45. define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );
  46. define( 'LOGGED_IN_SALT', 'put your unique phrase here' );
  47. define( 'NONCE_SALT', 'put your unique phrase here' );
  48. $table_prefix = 'wpphpunittests_'; // Only numbers, letters, and underscores please!
  49. define( 'WP_TESTS_DOMAIN', 'example.org' );
  50. define( 'WP_TESTS_EMAIL', 'admin@example.org' );
  51. define( 'WP_TESTS_TITLE', 'Test Blog' );
  52. define( 'WP_PHP_BINARY', 'php' );
  53. define( 'WPLANG', '' );