refactor(2meet-data-optimizer-hivepress-addon): remove TMDO_HPCT_Import
- Delete the HPCT importer (no caller left after core dropped HPCT in PR-020c) and its bootstrap/alias/test-bootstrap entries - Conflict guard notice, log line and HivePress admin tab no longer point to the never-existing `wp wpdo hivepress migrate-from-hpct`; they say to deactivate the legacy plugins (their own tables are not imported) - Verify: ConflictGuardTest guard; HP unit 146 / integration 49 OK, bootstrap smoke OK - PR: PR-020d
This commit is contained in:
@@ -46,7 +46,6 @@ $tmdo_hp_files = array(
|
||||
'includes/class-tmdo-hivepress-transient-filter.php',
|
||||
'includes/class-tmdo-hivepress-term-comment-fields.php',
|
||||
'includes/class-tmdo-hivepress-entity-groups.php',
|
||||
'includes/class-tmdo-hpct-import.php',
|
||||
'includes/class-tmdo-listing-stats.php',
|
||||
'admin/class-tmdo-admin-hivepress.php',
|
||||
'cli/class-tmdo-cli-hivepress.php',
|
||||
|
||||
@@ -45,7 +45,6 @@ $tmdo_hp_files = array(
|
||||
'includes/class-tmdo-hivepress-transient-filter.php',
|
||||
'includes/class-tmdo-hivepress-term-comment-fields.php',
|
||||
'includes/class-tmdo-hivepress-entity-groups.php',
|
||||
'includes/class-tmdo-hpct-import.php',
|
||||
'admin/class-tmdo-admin-hivepress.php',
|
||||
'cli/class-tmdo-cli-hivepress.php',
|
||||
);
|
||||
|
||||
@@ -47,6 +47,16 @@ class HivePressConflictGuardTest extends TestCase {
|
||||
$this->assertSame( '', $out );
|
||||
}
|
||||
|
||||
public function test_guidance_does_not_point_to_a_missing_command(): void {
|
||||
// There is no HPCT importer: `wp wpdo hivepress migrate-from-hpct` never
|
||||
// existed and TMDO_HPCT_Import had no caller once core dropped HPCT.
|
||||
$root = dirname( __DIR__, 2 );
|
||||
foreach ( array( 'includes/hivepress/class-tmdo-hivepress-conflict-guard.php', 'admin/class-tmdo-admin-hivepress.php' ) as $file ) {
|
||||
$this->assertStringNotContainsString( 'migrate-from-hpct', (string) file_get_contents( $root . '/' . $file ), $file );
|
||||
}
|
||||
$this->assertFileDoesNotExist( $root . '/includes/class-tmdo-hpct-import.php' );
|
||||
}
|
||||
|
||||
public function test_memo_cache_avoids_repeat_probing(): void {
|
||||
WPDO_HivePress_Conflict_Guard::reset_for_tests();
|
||||
$first = WPDO_HivePress_Conflict_Guard::detect_conflicts();
|
||||
|
||||
Reference in New Issue
Block a user