diff --git a/src/TestSuite/Fixture/ChecksumTestFixture.php b/src/TestSuite/Fixture/ChecksumTestFixture.php index 47a05e7..a7866cb 100644 --- a/src/TestSuite/Fixture/ChecksumTestFixture.php +++ b/src/TestSuite/Fixture/ChecksumTestFixture.php @@ -124,10 +124,15 @@ protected function _hash(ConnectionInterface $db): string /** * Get the key for table hashes * - * @return string key for specify connection and table + * The key contains: + * - The table name + * - The connection name to prevent collisions across connections + * - The fixture class name to prevent collisions when loading multiple fixtures for the same table throughout a test run + * + * @return string Key based on connection, table and fixture class names */ protected function _getTableKey(): string { - return $this->connection() . '-' . $this->table; + return $this->connection() . '-' . $this->table . '-' . static::class; } }