diff --git a/typo3/sysext/extbase/Tests/Functional/Persistence/RelationTest.php b/typo3/sysext/extbase/Tests/Functional/Persistence/RelationTest.php index 6f8f0850425e011c6e1f0a09f42f5db027c3f487..16bc0da4772e0bd720d022b21f7806807f7eeaaf 100644 --- a/typo3/sysext/extbase/Tests/Functional/Persistence/RelationTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Persistence/RelationTest.php @@ -1010,43 +1010,4 @@ class RelationTest extends \TYPO3\TestingFramework\Core\Functional\FunctionalTes $blogRepository->update($this->blog); $this->persistentManager->persistAll(); } - - public function ensureCorrectPostOrderingByCategoryTitleDataProvider() - { - return [ - 'Post with no category and post with category' => [ - [2, 3], - [3, 2] - ], - 'Posts with category and Post with category and bogus category' => [ - [2, 1], - [1, 2] - ], - 'Posts bogus category and post with category' => [ - [5, 2], - [5, 2] - ], - ]; - } - - /** - * This test covers the case when data is ordered by criteria that is MM related with matchFields involved - * on the relation table. (post <-> sys_category_mm <-> sys_category) - * - * @test - * @dataProvider ensureCorrectPostOrderingByCategoryTitleDataProvider - * @group mysql - */ - public function ensureCorrectPostOrderingByCategoryTitle(array $uids, array $expected) - { - /** @var \ExtbaseTeam\BlogExample\Domain\Repository\PostRepository $postRepository */ - $postRepository = $this->objectManager->get(\ExtbaseTeam\BlogExample\Domain\Repository\PostRepository::class); - $posts = $postRepository->findAllSortedByCategory($uids)->toArray(); - $result = []; - /** @var Post $post */ - foreach ($posts as $post) { - $result[] = $post->getUid(); - } - $this->assertSame($expected, $result); - } }