1
0
mirror of synced 2025-03-06 21:06:16 +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 031e79e726
commit 345cf1acf8
No known key found for this signature in database
GPG Key ID: 4167D3337FD9D629

View File

@ -143,10 +143,12 @@ class PersistentCollectionTest extends OrmTestCase
{ {
$this->setUpPersistentCollection(); $this->setUpPersistentCollection();
$this->collection->add('dummy'); $dummy = new \stdClass();
$this->collection->removeElement('dummy');
$this->collection->add($dummy);
$this->collection->removeElement($dummy);
$this->collection->clear(); $this->collection->clear();
$this->collection->add('dummy'); $this->collection->add($dummy);
$this->assertEquals([0], array_keys($this->collection->toArray())); $this->assertEquals([0], array_keys($this->collection->toArray()));
} }
} }