File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -114,10 +114,15 @@ protected function _hash(ConnectionInterface $connection): string
114
114
/**
115
115
* Get the key for table hashes
116
116
*
117
- * @return string key for specify connection and table
117
+ * The key contains:
118
+ * - The table name
119
+ * - The connection name to prevent collisions across connections
120
+ * - The fixture class name to prevent collisions when loading multiple fixtures for the same table throughout a test run
121
+ *
122
+ * @return string Key based on connection, table and fixture class names
118
123
*/
119
124
protected function _getTableKey (): string
120
125
{
121
- return $ this ->connection () . '- ' . $ this ->table ;
126
+ return $ this ->connection () . '- ' . $ this ->table . ' - ' . static ::class ;
122
127
}
123
128
}
You can’t perform that action at this time.
0 commit comments