1
0
mirror of synced 2025-02-02 13:31:45 +03:00

#6613 #6614 correcting broken test that isn't using objects against a PersistentCollection

This commit is contained in:
Marco Pivetta 2017-08-11 15:15:57 +02:00
parent 9545bf9d8c
commit 59c5574554
No known key found for this signature in database
GPG Key ID: 4167D3337FD9D629

View File

@ -118,10 +118,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()));
}
}