wp-config.php 2.7 KB

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