TYPO3 CMS  TYPO3_6-2
FormEngineInlineTest.php
Go to the documentation of this file.
1 <?php
3 
19 
24 
25  protected $testExtensionsToLoad = array(
26  'typo3/sysext/backend/Tests/Functional/Fixtures/Extensions/inlinetest'
27  );
28 
32  protected $subject;
33 
37  public function setUp() {
38  parent::setUp();
39  $this->setUpBackendUserFromFixture(1);
40  $this->importDataSet(ORIGINAL_ROOT . 'typo3/sysext/backend/Tests/Functional/Fixtures/inlinetest.xml');
41  $GLOBALS['LANG'] = GeneralUtility::makeInstance('TYPO3\\CMS\\Lang\\LanguageService');
42  $GLOBALS['LANG']->init('default');
43  $this->subject = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\FormEngine');
44  $this->subject->initDefaultBEmode();
45  }
46 
54  $rows = $this->getDatabaseConnection()->exec_SELECTgetRows('*', 'tx_inlinetest_record', 'uid=1');
55  $mainFields = $this->subject->getMainFields('tx_inlinetest_record', $rows[0]);
56  $this->assertNotContains('afterinline', $mainFields);
57  }
58 }
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]