Skip to content

Commit

Permalink
[3.x] Take fixture name into account for table key hash (#28)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: german.krutov <[email protected]>
  • Loading branch information
krugerman007 and german.krutov authored Aug 9, 2024
1 parent 896b79d commit e0e598a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/TestSuite/Fixture/ChecksumTestFixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,15 @@ protected function _hash(ConnectionInterface $connection): 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;
}
}

0 comments on commit e0e598a

Please sign in to comment.