TYPO3 CMS  TYPO3_6-2
DataProviderTest.php
Go to the documentation of this file.
1 <?php
3 
25 
29  protected $subject = NULL;
30 
31  public function setUp() {
32  $GLOBALS['TYPO3_CONF_VARS']['BE']['pageTree']['preloadLimit'] = 0;
33  $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/tree/pagetree/class.t3lib_tree_pagetree_dataprovider.php']['postProcessCollections'] = array();
34  $GLOBALS['LOCKED_RECORDS'] = array();
36  $backendUserMock = $this->getMock('TYPO3\\CMS\\Core\\Authentication\\BackendUserAuthentication', array(), array(), '', FALSE);
37  $GLOBALS['BE_USER'] = $backendUserMock;
38 
39  $this->subject = new \TYPO3\CMS\Backend\Tree\Pagetree\DataProvider();
40 
41  }
42 
47  $this->assertSame('root', $this->subject->getRoot()->getId());
48  }
49 
53  public function getRootNodeReturnsExpandedNode() {
54  $this->assertTrue($this->subject->getRoot()->isExpanded());
55  }
56 }
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]