When the RELS-INT is purged and there are existing Datastream objects, it's possible to have the following scenario:
RELS-INT statement a contains a literal "A"
RELS-INT statement b contains a literal "B".
The expected outcome is for the RELS-INT to contain two separate entries with both literals "A" and "B" present.
When the RELS-INT datastream exists and is purged and additional RELS-INT add actions take place only the "B" literal is present. This behavior was uncovered while writing a test for
This is mitigated by the fact there are no direct calls to "purgeDatastream('RELS-INT')" in the code base. However, this is unexpected behavior and could throw a developer threw a loop.
A PHPUnit test was written to document this behavior in
ISLANDORA-2067 but is currently being marked as incomplete as the outcome will fail until this bug is fixed.