diff --git a/tests/src/FixtureContext.php b/tests/src/FixtureContext.php index 44f1fae..f548cdb 100644 --- a/tests/src/FixtureContext.php +++ b/tests/src/FixtureContext.php @@ -16,6 +16,13 @@ final class FixtureContext extends FixtureBase { * @BeforeScenario */ public function setUp() { + + // When Content Hub Publisher is present, ensure its table is clean. + $moduleHandler = \Drupal::service('module_handler'); + if ($moduleHandler->moduleExists('acquia_contenthub_publisher')) { + \Drupal::database()->truncate('acquia_contenthub_publisher_export_tracking')->execute(); + } + // Create the administrator role if it does not already exist. if (! Role::load('administrator')) { $role = Role::create([