30 protected $testExtensionsToLoad = array(
'typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example');
49 $this->queryParser = $this->objectManager->get(
'TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Storage\\Typo3DbQueryParser');
50 $this->blogRepository = $this->objectManager->get(
'ExtbaseTeam\\BlogExample\\Domain\\Repository\\BlogRepository');
57 $queryWithEquals = $this->blogRepository->createQuery();
59 $queryWithEquals->matching(
60 $queryWithEquals->equals(
'uid', 1)
63 list($hashWithEquals) = $this->queryParser->preparseQuery($queryWithEquals);
65 $queryWithIn = $this->blogRepository->createQuery();
67 $queryWithIn->matching(
68 $queryWithIn->in(
'uid', array(1))
71 list($hashWithIn) = $this->queryParser->preparseQuery($queryWithIn);
73 $this->assertNotSame($hashWithEquals, $hashWithIn);
80 $queryWithIsNull = $this->blogRepository->createQuery();
82 $queryWithIsNull->matching(
83 $queryWithIsNull->equals(
'title', NULL)
86 list($hashWithIsNull) = $this->queryParser->preparseQuery($queryWithIsNull);
88 $queryWithoutIsNull = $this->blogRepository->createQuery();
90 $queryWithoutIsNull->matching(
91 $queryWithoutIsNull->equals(
'title',
'')
94 list($hashWithoutIsNull) = $this->queryParser->preparseQuery($queryWithoutIsNull);
96 $this->assertNotSame($hashWithIsNull, $hashWithoutIsNull);
104 $queryCaseSensitiveFalse = $this->blogRepository->createQuery();
106 $queryCaseSensitiveFalse->matching(
107 $queryCaseSensitiveFalse->equals(
'title',
'PoSt1', FALSE)
110 list($hashWithCaseSensitiveFalse) = $this->queryParser->preparseQuery($queryCaseSensitiveFalse);
112 $queryCaseSensitiveTrue = $this->blogRepository->createQuery();
114 $queryCaseSensitiveTrue->matching(
115 $queryCaseSensitiveTrue->equals(
'title',
'PoSt1', TRUE)
118 list($hashWithCaseSensitiveTrue) = $this->queryParser->preparseQuery($queryCaseSensitiveTrue);
120 $this->assertNotSame($hashWithCaseSensitiveFalse, $hashWithCaseSensitiveTrue);
preparseQueryHashDiffersForIsNullOperator()
preparseQueryHashDiffersForEqualsCaseSensitiveArgument()
static makeInstance($className)
preparseQueryTakesOperatorsIntoHash()