Ejemplo n.º 1
0
 /**
  * @test
  * @see http://forge.typo3.org/issues/21903
  */
 public function caseWithMultipleWhenIsSupportedInFields()
 {
     $parseString = 'CASE column WHEN 1 THEN \'one\' WHEN 2 THEN \'two\' ELSE \'out of range\' END AS number';
     $result = $this->subject->parseFieldList($parseString);
     $this->assertInternalType('array', $result);
     $this->assertEmpty($parseString);
 }
Ejemplo n.º 2
0
 /**
  * @test
  * @see https://forge.typo3.org/issues/38838
  */
 public function caseWithBooleanConditionIsSupportedWithinAggregateFunction()
 {
     $parseString = 'MIN(CASE WHEN foo < 100 THEN NULL ELSE foo END) AS foo';
     $result = $this->subject->parseFieldList($parseString);
     $this->assertInternalType('array', $result);
     $this->assertEmpty($parseString);
 }