All 14 test files updated to use correct constructor patterns (array-based value objects, dependency injection for ContentAnalyzer, etc.) and verified method names against source. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
23 lines
600 B
PHP
Executable File
23 lines
600 B
PHP
Executable File
<?php
|
|
/**
|
|
* PHPUnit bootstrap for PRAutoBlogger unit tests.
|
|
*
|
|
* Loads composer autoloader and defines WordPress constants.
|
|
* Brain\Monkey setup is done in BaseTestCase, not here.
|
|
*
|
|
* @package PRAutoBlogger\Tests
|
|
*/
|
|
|
|
require_once dirname( __DIR__ ) . '/vendor/autoload.php';
|
|
|
|
// Define WordPress constants that source files expect.
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
define( 'ABSPATH', '/tmp/wordpress/' );
|
|
}
|
|
if ( ! defined( 'PRAB_VERSION' ) ) {
|
|
define( 'PRAB_VERSION', '1.0.0-test' );
|
|
}
|
|
if ( ! defined( 'PRAB_PLUGIN_DIR' ) ) {
|
|
define( 'PRAB_PLUGIN_DIR', dirname( __DIR__ ) . '/' );
|
|
}
|