[FEATURE] Allow calling toArray() on ObjectStorage using name getArray()
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Unit / Persistence / ObjectStorageTest.php
index 45a926b..6234c79 100644 (file)
@@ -209,7 +209,8 @@ class ObjectStorageTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
         $object2 = new \StdClass();
         $objectStorage->attach($object1, 'foo');
         $objectStorage->attach($object2, 'bar');
-        $this->assertEquals($objectStorage->toArray(), array($object1, $object2));
+        $this->assertEquals(array($object1, $object2), $objectStorage->toArray());
+        $this->assertEquals(array($object1, $object2), $objectStorage->getArray());
     }
 
     /**