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
ProcessedFileRepositoryTest.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Core\Tests\Unit\Resource
;
3
20
class
ProcessedFileRepositoryTest
extends
\TYPO3\CMS\Core\Tests\UnitTestCase
{
21
25
public
function
cleanUnavailableColumnsWorks
() {
26
$fixture = $this->
getAccessibleMock
(
'TYPO3\\CMS\\Core\\Resource\\ProcessedFileRepository'
, array(
'dummy'
), array(),
''
, FALSE);
27
$databaseMock = $this->
getAccessibleMock
(
'TYPO3\\CMS\\Core\\Database\\DatabaseConnection'
, array(
'admin_get_fields'
));
28
$databaseMock->expects($this->once())->method(
'admin_get_fields'
)->will($this->returnValue(array(
'storage'
=>
''
,
'checksum'
=>
''
)));
29
$fixture->_set(
'databaseConnection'
, $databaseMock);
30
31
$actual = $fixture->_call(
'cleanUnavailableColumns'
, array(
'storage'
=>
'a'
,
'checksum'
=>
'b'
,
'key3'
=>
'c'
));
32
33
$this->assertSame(array(
'storage'
=>
'a'
,
'checksum'
=>
'b'
), $actual);
34
}
35
36
}
TYPO3\CMS\Core\Tests\BaseTestCase\getAccessibleMock
getAccessibleMock( $originalClassName, array $methods=array(), array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
Definition:
BaseTestCase.php:56
TYPO3\CMS\Core\Tests\Unit\Resource
Definition:
AbstractFileTest.php:2
TYPO3\CMS\Core\Tests\Unit\Resource\ProcessedFileRepositoryTest\cleanUnavailableColumnsWorks
cleanUnavailableColumnsWorks()
Definition:
ProcessedFileRepositoryTest.php:25
TYPO3\CMS\Core\Tests\Unit\Resource\ProcessedFileRepositoryTest
Definition:
ProcessedFileRepositoryTest.php:20
TYPO3\CMS\Core\Tests\UnitTestCase
Definition:
UnitTestCase.php:26
typo3
sysext
core
Tests
Unit
Resource
ProcessedFileRepositoryTest.php
Generated on Wed Aug 7 2019 09:52:23 for TYPO3 CMS by
1.8.13