TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Frontend\Tests\Unit\Processor\GalleryProcessorTest Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Tests\Unit\Processor\GalleryProcessorTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\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 TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\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)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 

Protected Attributes

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

Detailed Description

Tests for GalleryProcessor

Definition at line 24 of file GalleryProcessorTest.php.

Member Function Documentation

◆ calculateMediaWidthsAndHeightsDataProvider()

TYPO3\CMS\Frontend\Tests\Unit\Processor\GalleryProcessorTest::calculateMediaWidthsAndHeightsDataProvider ( )

Data provider for calculateMediaWidthsAndHeightsTest

Returns
array

Definition at line 275 of file GalleryProcessorTest.php.

◆ calculateMediaWidthsAndHeightsTest()

TYPO3\CMS\Frontend\Tests\Unit\Processor\GalleryProcessorTest::calculateMediaWidthsAndHeightsTest (   $testFiles,
  $processorConfiguration,
  $expected 
)
Test:
calculateMediaWidthsAndHeightsDataProvider

Definition at line 439 of file GalleryProcessorTest.php.

◆ countDataProvider()

TYPO3\CMS\Frontend\Tests\Unit\Processor\GalleryProcessorTest::countDataProvider ( )

Count test data provider

Returns
array

Definition at line 200 of file GalleryProcessorTest.php.

◆ countResultTest()

TYPO3\CMS\Frontend\Tests\Unit\Processor\GalleryProcessorTest::countResultTest (   $numberOfFiles,
  $data,
  $processorConfiguration,
  $expected 
)
Test:
countDataProvider

Definition at line 252 of file GalleryProcessorTest.php.

◆ galleryPositionDataProvider()

TYPO3\CMS\Frontend\Tests\Unit\Processor\GalleryProcessorTest::galleryPositionDataProvider ( )

Gallery position test data provider

Definition at line 60 of file GalleryProcessorTest.php.

◆ galleryPositionTest()

TYPO3\CMS\Frontend\Tests\Unit\Processor\GalleryProcessorTest::galleryPositionTest (   $processorConfiguration,
  $expected 
)
Test:
galleryPositionDataProvider

Definition at line 151 of file GalleryProcessorTest.php.

◆ maxGalleryWidthTest()

TYPO3\CMS\Frontend\Tests\Unit\Processor\GalleryProcessorTest::maxGalleryWidthTest ( )
Test:

Definition at line 167 of file GalleryProcessorTest.php.

◆ maxGalleryWidthWhenInTextTest()

TYPO3\CMS\Frontend\Tests\Unit\Processor\GalleryProcessorTest::maxGalleryWidthWhenInTextTest ( )
Test:

Definition at line 183 of file GalleryProcessorTest.php.

◆ processThrowsExceptionWhenFilesProcessedDataKeyIsNotFound()

TYPO3\CMS\Frontend\Tests\Unit\Processor\GalleryProcessorTest::processThrowsExceptionWhenFilesProcessedDataKeyIsNotFound ( )
Test:

Definition at line 46 of file GalleryProcessorTest.php.

◆ setUp()

TYPO3\CMS\Frontend\Tests\Unit\Processor\GalleryProcessorTest::setUp ( )
protected

Set up

Definition at line 34 of file GalleryProcessorTest.php.

Member Data Documentation

◆ $contentObjectRenderer

TYPO3\CMS\Frontend\Tests\Unit\Processor\GalleryProcessorTest::$contentObjectRenderer
protected

Definition at line 29 of file GalleryProcessorTest.php.