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

Public Member Functions

 processThrowsExceptionWhenFilesProcessedDataKeyIsNotFound ()
 
 galleryPositionDataProvider ()
 
 galleryPositionTest ($processorConfiguration, $expected)
 
 maxGalleryWidthTest ()
 
 maxGalleryWidthWhenInTextTest ()
 
 countDataProvider ()
 
 countResultTest ($numberOfFiles, $data, $processorConfiguration, $expected)
 
 calculateMediaWidthsAndHeightsDataProvider ()
 
 calculateMediaWidthsAndHeightsTest ($testFiles, $processorConfiguration, $expected)
 

Protected Member Functions

 setUp ()
 
- 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

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

Detailed Description

Tests for GalleryProcessor

Definition at line 25 of file GalleryProcessorTest.php.

Member Function Documentation

calculateMediaWidthsAndHeightsDataProvider ( )

Data provider for calculateMediaWidthsAndHeightsTest

Returns
array

Definition at line 276 of file GalleryProcessorTest.php.

calculateMediaWidthsAndHeightsTest (   $testFiles,
  $processorConfiguration,
  $expected 
)
Test:
calculateMediaWidthsAndHeightsDataProvider

Definition at line 440 of file GalleryProcessorTest.php.

countDataProvider ( )

Count test data provider

Returns
array

Definition at line 201 of file GalleryProcessorTest.php.

countResultTest (   $numberOfFiles,
  $data,
  $processorConfiguration,
  $expected 
)
Test:
countDataProvider

Definition at line 253 of file GalleryProcessorTest.php.

galleryPositionDataProvider ( )

Gallery position test data provider

Definition at line 61 of file GalleryProcessorTest.php.

galleryPositionTest (   $processorConfiguration,
  $expected 
)
Test:
galleryPositionDataProvider

Definition at line 152 of file GalleryProcessorTest.php.

maxGalleryWidthTest ( )
Test:

Definition at line 168 of file GalleryProcessorTest.php.

maxGalleryWidthWhenInTextTest ( )
Test:

Definition at line 184 of file GalleryProcessorTest.php.

processThrowsExceptionWhenFilesProcessedDataKeyIsNotFound ( )
Test:

Definition at line 45 of file GalleryProcessorTest.php.

setUp ( )
protected

Set up

Definition at line 35 of file GalleryProcessorTest.php.

Member Data Documentation

$contentObjectRenderer
protected

Definition at line 30 of file GalleryProcessorTest.php.