Esempio n. 1
0
 /**
  * @test
  * @dataProvider getShouldFieldBeOverlaidData
  */
 public function shouldFieldBeOverlaid($field, $table, $value, $expected, $comment = '')
 {
     $GLOBALS['TCA']['fake_table']['columns'] = array('exclude' => array('l10n_mode' => 'exclude', 'config' => array('type' => 'input')), 'mergeIfNotBlank' => array('l10n_mode' => 'mergeIfNotBlank', 'config' => array('type' => 'input')), 'mergeIfNotBlank_group' => array('l10n_mode' => 'mergeIfNotBlank', 'config' => array('type' => 'group')), 'default' => array('config' => array('type' => 'input')), 'noCopy' => array('l10n_mode' => 'noCopy', 'config' => array('type' => 'input')), 'prefixLangTitle' => array('l10n_mode' => 'prefixLangTitle', 'config' => array('type' => 'input')));
     $result = $this->pageSelectObject->_call('shouldFieldBeOverlaid', $table, $field, $value);
     unset($GLOBALS['TCA']['fake_table']);
     $this->assertSame($expected, $result, $comment);
 }