TYPO3 CMS
TYPO3_6-2
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
▼
TYPO3 CMS
TYPO3 CMS
Test List
Todo List
Deprecated List
►
Namespace Members
►
Classes
▼
Files
►
File List
►
File Members
►
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
DataProviderTest.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Backend\Tests\Unit\Tree\Pagetree
;
3
24
class
DataProviderTest
extends
\TYPO3\CMS\Core\Tests\UnitTestCase
{
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
46
public
function
getRootNodeReturnsNodeWithRootId
() {
47
$this->assertSame(
'root'
, $this->subject->getRoot()->getId());
48
}
49
53
public
function
getRootNodeReturnsExpandedNode
() {
54
$this->assertTrue($this->subject->getRoot()->isExpanded());
55
}
56
}
TYPO3\CMS\Backend\Tests\Unit\Tree\Pagetree
Definition:
DataProviderTest.php:2
TYPO3\CMS\Backend\Tests\Unit\Tree\Pagetree\DataProviderTest
Definition:
DataProviderTest.php:24
$GLOBALS
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
Definition:
ext_localconf.php:5
TYPO3\CMS\Backend\Tests\Unit\Tree\Pagetree\DataProviderTest\getRootNodeReturnsExpandedNode
getRootNodeReturnsExpandedNode()
Definition:
DataProviderTest.php:53
TYPO3\CMS\Backend\Tests\Unit\Tree\Pagetree\DataProviderTest\$subject
$subject
Definition:
DataProviderTest.php:29
TYPO3\CMS\Core\Tests\UnitTestCase
Definition:
UnitTestCase.php:26
TYPO3\CMS\Backend\Tests\Unit\Tree\Pagetree\DataProviderTest\getRootNodeReturnsNodeWithRootId
getRootNodeReturnsNodeWithRootId()
Definition:
DataProviderTest.php:46
typo3
sysext
backend
Tests
Unit
Tree
Pagetree
DataProviderTest.php
Generated on Wed Aug 7 2019 09:52:19 for TYPO3 CMS by
1.8.13