[FOLLOWUP][BUGFIX] objectManager->create is removed but still in use 19/35019/3
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Thu, 4 Dec 2014 01:21:19 +0000 (02:21 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Thu, 4 Dec 2014 01:53:21 +0000 (02:53 +0100)
Change-Id: I8aa8502a4a4188f2e665848745daccb75bca30c0
Resolves: #63552
Releases: 6.2
Reviewed-on: http://review.typo3.org/35019
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/extbase/Tests/Functional/Persistence/AddTest.php
typo3/sysext/extbase/Tests/Functional/Persistence/InTest.php

index 3580b36..277ebc1 100644 (file)
@@ -60,7 +60,7 @@ class AddTest extends \TYPO3\CMS\Core\Tests\FunctionalTestCase {
         */
        public function addSimpleObjectTest() {
                $newBlogTitle = 'aDi1oogh';
-               $newBlog = $this->objectManager->create('ExtbaseTeam\\BlogExample\\Domain\\Model\\Blog');
+               $newBlog = $this->objectManager->get('ExtbaseTeam\\BlogExample\\Domain\\Model\\Blog');
                $newBlog->setTitle($newBlogTitle);
 
                /** @var \ExtbaseTeam\BlogExample\Domain\Repository\BlogRepository $blogRepository */
index 65975d1..5d1551f 100644 (file)
@@ -109,7 +109,7 @@ class InTest extends \TYPO3\CMS\Core\Tests\FunctionalTestCase {
                $blog1 = $this->blogRepository->findByUid(1);
                $blog2 = $this->blogRepository->findByUid(2);
 
-               $objectStorage = $this->objectManager->create('TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage');
+               $objectStorage = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage');
                $objectStorage->attach($blog1);
                $objectStorage->attach($blog2);
 
@@ -129,7 +129,7 @@ class InTest extends \TYPO3\CMS\Core\Tests\FunctionalTestCase {
                $blog1 = $this->blogRepository->findByUid(1);
                $blog2 = $this->blogRepository->findByUid(2);
 
-               $objectStorage = $this->objectManager->create('TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage');
+               $objectStorage = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage');
                $objectStorage->attach($blog1);
                $objectStorage->attach($blog2);
 
@@ -141,7 +141,7 @@ class InTest extends \TYPO3\CMS\Core\Tests\FunctionalTestCase {
 
                $this->assertSame(11, $inQuery->count());
 
-               $newObjectStorage = $this->objectManager->create('TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage');
+               $newObjectStorage = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage');
                $newObjectStorage->attach($blog1);
 
                $newInQuery = $this->postRepository->createQuery();