[BUGFIX] Follow-up to Queries don't respect MM_match_fields 21/29821/3
authorFelix Oertel <felix@oer.tel>
Sat, 3 May 2014 18:51:23 +0000 (20:51 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 3 May 2014 20:20:12 +0000 (22:20 +0200)
Fixed two small glitches which escaped us in the review of
https://review.typo3.org/#/c/29713/.

Resolves: #10487
Releases: 6.2
Change-Id: I6425835a3aa349ac47ab0a01cf1241be2df6d187
Reviewed-on: https://review.typo3.org/29821
Reviewed-by: Marc Bastian Heinrichs
Tested-by: Marc Bastian Heinrichs
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Classes/Domain/Repository/PostRepository.php
typo3/sysext/extbase/Tests/Functional/Persistence/RelationTest.php

index 88164b4..9964ddf 100644 (file)
@@ -139,7 +139,7 @@ class PostRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
         * Find posts by category
         *
         * @param int $categoryUid
-        * @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface
+        * @return \TYPO3\CMS\Extbase\Persistence\QueryResultInterface
         */
        public function findByCategory($categoryUid) {
                $query = $this->createQuery();
@@ -151,4 +151,4 @@ class PostRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
        }
 
 }
-?>
\ No newline at end of file
+?>
index ba1bec1..ac0c95b 100644 (file)
@@ -439,7 +439,7 @@ class RelationTest extends \TYPO3\CMS\Core\Tests\FunctionalTestCase {
         *
         * @test
         */
-       public function MmRelationWithoutMatchFieldIsResolved() {
+       public function mmRelationWithoutMatchFieldIsResolved() {
                /** @var \ExtbaseTeam\BlogExample\Domain\Repository\PostRepository $postRepository */
                $postRepository = $this->objectManager->get('ExtbaseTeam\\BlogExample\\Domain\\Repository\\PostRepository');
                $posts = $postRepository->findByTagAndBlog('Tag2', $this->blog);
@@ -449,7 +449,7 @@ class RelationTest extends \TYPO3\CMS\Core\Tests\FunctionalTestCase {
        /**
         * @test
         */
-       public function MmRelationWithMatchFieldIsResolvedFromLocalSide() {
+       public function mmRelationWithMatchFieldIsResolvedFromLocalSide() {
                $countCategories = $this->getDatabaseConnection()->exec_SELECTcountRows('*', 'sys_category_record_mm', 'uid_foreign=1 AND tablenames="tx_blogexample_domain_model_post" AND fieldname="categories"');
                $this->assertSame(3, $countCategories);
 
@@ -464,7 +464,7 @@ class RelationTest extends \TYPO3\CMS\Core\Tests\FunctionalTestCase {
         *
         * @test
         */
-       public function MmRelationWithMatchFieldIsResolvedFromForeignSide() {
+       public function mmRelationWithMatchFieldIsResolvedFromForeignSide() {
                /** @var \ExtbaseTeam\BlogExample\Domain\Repository\PostRepository $postRepository */
                $postRepository = $this->objectManager->get('ExtbaseTeam\\BlogExample\\Domain\\Repository\\PostRepository');
                $posts = $postRepository->findByCategory(1);
@@ -477,7 +477,7 @@ class RelationTest extends \TYPO3\CMS\Core\Tests\FunctionalTestCase {
        /**
         * @test
         */
-       public function MmRelationWithMatchFieldIsCreatedFromLocalSide() {
+       public function mmRelationWithMatchFieldIsCreatedFromLocalSide() {
                $countCategories = $this->getDatabaseConnection()->exec_SELECTcountRows('*', 'sys_category_record_mm', 'uid_foreign=1 AND tablenames="tx_blogexample_domain_model_post" AND fieldname="categories"');
                $this->assertSame(3, $countCategories);