TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
RemoteServerTest Class Reference
Inheritance diagram for RemoteServerTest:
UnitTestCase BaseTestCase

Public Member Functions

 prepareFileReferenceDifferencesAreCorrectDataProvider ()
 
 prepareFileReferenceDifferencesAreCorrect ($fileFileReferenceList, $versionFileReferenceList, $useThumbnails, array $expected=null)
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 
 getFileReferenceProphecies ($idList)
 
 getFileReferenceProphecy ($id)
 
- Protected Member Functions inherited from UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from BaseTestCase
 getAccessibleMock ($originalClassName, $methods=[], array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 getAccessibleMockForAbstractClass ($originalClassName, array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[])
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name,...$arguments)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix= '')
 

Protected Attributes

 $subject
 
 $fileReferenceProphecies
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

RemoteServer test

Definition at line 27 of file RemoteServerTest.php.

Member Function Documentation

getFileReferenceProphecies (   $idList)
protected
Parameters
string$idListList of ids
Returns
FileReference[]|ObjectProphecy[]

Definition at line 146 of file RemoteServerTest.php.

References RemoteServerTest\$fileReferenceProphecies, RemoteServerTest\getFileReferenceProphecy(), and GeneralUtility\trimExplode().

Referenced by RemoteServerTest\prepareFileReferenceDifferencesAreCorrect().

getFileReferenceProphecy (   $id)
protected
Parameters
int$id
Returns
ObjectProphecy|FileReference

Definition at line 162 of file RemoteServerTest.php.

Referenced by RemoteServerTest\getFileReferenceProphecies().

prepareFileReferenceDifferencesAreCorrect (   $fileFileReferenceList,
  $versionFileReferenceList,
  $useThumbnails,
array  $expected = null 
)
Parameters
string$fileFileReferenceList
string$versionFileReferenceList
$useThumbnails
array | null$expectedprepareFileReferenceDifferencesAreCorrectDataProvider
Test:

Definition at line 127 of file RemoteServerTest.php.

References RemoteServerTest\getFileReferenceProphecies().

prepareFileReferenceDifferencesAreCorrectDataProvider ( )
Returns
array

Definition at line 61 of file RemoteServerTest.php.

setUp ( )
protected

Set up

Definition at line 42 of file RemoteServerTest.php.

References BaseTestCase\getAccessibleMock().

tearDown ( )
protected

Tear down.

Definition at line 51 of file RemoteServerTest.php.

Member Data Documentation

$fileReferenceProphecies
protected

Definition at line 37 of file RemoteServerTest.php.

Referenced by RemoteServerTest\getFileReferenceProphecies().

$subject
protected

Definition at line 32 of file RemoteServerTest.php.