/**
  * @test
  */
 public function getTablesShouldReturnAnArray()
 {
     $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['feature_flag'] = serialize(array('tables' => 'pages,tt_content,foo,bar'));
     $configuration = new Tx_FeatureFlag_System_Typo3_Configuration();
     $this->assertTrue(is_array($configuration->getTables()));
     $this->assertCount(4, $configuration->getTables());
 }
Example #2
0
 /**
  * Flags entries in database
  */
 public function flagEntries()
 {
     foreach ($this->configuration->getTables() as $table) {
         $this->featureFlagRepository->updateFeatureFlagStatusForTable($table);
     }
 }