<?php
/**
 * WP test configuration. Loaded by wp-phpunit's bootstrap.
 *
 * @package Ppok\AIToolkit\Tests
 * @license GPL-2.0-or-later
 *
 * SQLite is used via the wp-content/db.php drop-in (installed by
 * tests/bootstrap.php), so the DB_* credentials below are placeholders.
 */

// Absolute path to the WordPress directory.
define( 'ABSPATH', dirname( __DIR__ ) . '/vendor/wordpress/' );

// Placeholder DB constants — sqlite drop-in ignores them but WP requires them.
define( 'DB_NAME',     'wordpress_test' );
define( 'DB_USER',     'wp' );
define( 'DB_PASSWORD', 'wp' );
define( 'DB_HOST',     'localhost' );
define( 'DB_CHARSET',  'utf8' );
define( 'DB_COLLATE',  '' );

// WP authentication keys — required by WP, can be any unique string for tests.
define( 'AUTH_KEY',         'phpunit test auth key' );
define( 'SECURE_AUTH_KEY',  'phpunit test secure auth key' );
define( 'LOGGED_IN_KEY',    'phpunit test logged in key' );
define( 'NONCE_KEY',        'phpunit test nonce key' );
define( 'AUTH_SALT',        'phpunit test auth salt' );
define( 'SECURE_AUTH_SALT', 'phpunit test secure auth salt' );
define( 'LOGGED_IN_SALT',   'phpunit test logged in salt' );
define( 'NONCE_SALT',       'phpunit test nonce salt' );

// Test runner config.
define( 'WP_TESTS_DOMAIN', 'example.org' );
define( 'WP_TESTS_EMAIL',  'admin@example.org' );
define( 'WP_TESTS_TITLE',  'Ppok AI Toolkit Test Site' );
define( 'WP_PHP_BINARY',   'php' );
define( 'WP_DEBUG',        true );

// Table prefix.
$table_prefix = 'wptests_';
