/**
  * In case the cHashOnlyForParameters is set, other parameters should not
  * incluence the cHash (except the encryption key of course)
  *
  * @dataProvider canWhitelistParametersDataprovider
  * @test
  */
 public function canWhitelistParameters($params, $expected)
 {
     $method = new \ReflectionMethod(\TYPO3\CMS\Frontend\Page\CacheHashCalculator::class, 'setCachedParametersWhiteList');
     $method->setAccessible(true);
     $method->invoke($this->subject, array('whitep1', 'whitep2'));
     $this->assertEquals($expected, $this->subject->generateForParameters($params));
 }
 /**
  * In case the cHashOnlyForParameters is set, other parameters should not
  * incluence the cHash (except the encryption key of course)
  *
  * @dataProvider canWhitelistParametersDataprovider
  * @test
  */
 public function canWhitelistParameters($params, $expected)
 {
     $method = new \ReflectionMethod('TYPO3\\CMS\\Frontend\\Page\\CacheHashCalculator', 'setCachedParametersWhiteList');
     $method->setAccessible(TRUE);
     $method->invoke($this->fixture, array('whitep1', 'whitep2'));
     $this->assertEquals($expected, $this->fixture->generateForParameters($params));
 }
 /**
  * In case the cHashOnlyForParameters is set, other parameters should not
  * incluence the cHash (except the encryption key of course)
  *
  * @dataProvider canWhitelistParametersDataprovider
  * @test
  */
 public function canWhitelistParameters($params, $expected)
 {
     if (!class_exists('t3lib_diff')) {
         $this->markTestSkipped('The current version of phpunit relies on t3lib_diff which is removed in 6.0 and thus this test fails. Move t3lib_diff to phpunit and reenable this test.');
     }
     $method = new ReflectionMethod('TYPO3\\CMS\\Frontend\\Page\\CacheHashCalculator', 'setCachedParametersWhiteList');
     $method->setAccessible(TRUE);
     $method->invoke($this->fixture, array('whitep1', 'whitep2'));
     $this->assertEquals($expected, $this->fixture->generateForParameters($params));
 }