This commit is contained in:
parent
031e79e726
commit
345cf1acf8
@ -143,10 +143,12 @@ class PersistentCollectionTest extends OrmTestCase
|
||||
{
|
||||
$this->setUpPersistentCollection();
|
||||
|
||||
$this->collection->add('dummy');
|
||||
$this->collection->removeElement('dummy');
|
||||
$dummy = new \stdClass();
|
||||
|
||||
$this->collection->add($dummy);
|
||||
$this->collection->removeElement($dummy);
|
||||
$this->collection->clear();
|
||||
$this->collection->add('dummy');
|
||||
$this->collection->add($dummy);
|
||||
$this->assertEquals([0], array_keys($this->collection->toArray()));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user