TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Tests\Unit\Collection\RecordCollectionRepositoryTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Collection\RecordCollectionRepositoryTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 doesFindByUidReturnNull ()
 
 doesFindByUidReturnObject ()
 
 doesFindByUidThrowException ()
 
 doesFindByTypeReturnNull ()
 
 doesFindByTypeReturnObjects ()
 
 doesFindByTableNameReturnNull ()
 
 doesFindByTableNameReturnObjects ()
 
 doesFindByTypeAndTableNameReturnNull ()
 
 doesFindByTypeAndTableNameReturnObjects ()
 
 getSingleRowCallback ($fields, $table)
 
 getRowsCallback ($fields, $table)
 

Protected Member Functions

 setUp ()
 
 limitRecordFields ($fields, array $record)
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 getAccessibleMock ( $originalClassName, array $methods=array(), array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 

Protected Attributes

 $fixture
 
 $databaseMock
 
 $getSingleRowCallbackReturnValue
 
 $getRowsCallbackReturnValue
 
 $testTableName
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = array('TYPO3_LOADED_EXT')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = TRUE
 
 $backupStaticAttributes = FALSE
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Test case for

Author
Oliver Hader olive.nosp@m.r.ha.nosp@m.der@t.nosp@m.ypo3.nosp@m..org

Definition at line 22 of file RecordCollectionRepositoryTest.php.

Member Function Documentation

◆ doesFindByTableNameReturnNull()

TYPO3\CMS\Core\Tests\Unit\Collection\RecordCollectionRepositoryTest::doesFindByTableNameReturnNull ( )

◆ doesFindByTableNameReturnObjects()

TYPO3\CMS\Core\Tests\Unit\Collection\RecordCollectionRepositoryTest::doesFindByTableNameReturnObjects ( )

◆ doesFindByTypeAndTableNameReturnNull()

TYPO3\CMS\Core\Tests\Unit\Collection\RecordCollectionRepositoryTest::doesFindByTypeAndTableNameReturnNull ( )

◆ doesFindByTypeAndTableNameReturnObjects()

TYPO3\CMS\Core\Tests\Unit\Collection\RecordCollectionRepositoryTest::doesFindByTypeAndTableNameReturnObjects ( )

◆ doesFindByTypeReturnNull()

TYPO3\CMS\Core\Tests\Unit\Collection\RecordCollectionRepositoryTest::doesFindByTypeReturnNull ( )

◆ doesFindByTypeReturnObjects()

TYPO3\CMS\Core\Tests\Unit\Collection\RecordCollectionRepositoryTest::doesFindByTypeReturnObjects ( )

◆ doesFindByUidReturnNull()

TYPO3\CMS\Core\Tests\Unit\Collection\RecordCollectionRepositoryTest::doesFindByUidReturnNull ( )
Test:

Definition at line 65 of file RecordCollectionRepositoryTest.php.

◆ doesFindByUidReturnObject()

TYPO3\CMS\Core\Tests\Unit\Collection\RecordCollectionRepositoryTest::doesFindByUidReturnObject ( )
Test:

Definition at line 76 of file RecordCollectionRepositoryTest.php.

◆ doesFindByUidThrowException()

TYPO3\CMS\Core\Tests\Unit\Collection\RecordCollectionRepositoryTest::doesFindByUidThrowException ( )

◆ getRowsCallback()

TYPO3\CMS\Core\Tests\Unit\Collection\RecordCollectionRepositoryTest::getRowsCallback (   $fields,
  $table 
)

◆ getSingleRowCallback()

TYPO3\CMS\Core\Tests\Unit\Collection\RecordCollectionRepositoryTest::getSingleRowCallback (   $fields,
  $table 
)

◆ limitRecordFields()

TYPO3\CMS\Core\Tests\Unit\Collection\RecordCollectionRepositoryTest::limitRecordFields (   $fields,
array  $record 
)
protected

Limits record fields to a given field list.

Parameters
string$fieldsList of fields
array$recordThe database record (or the simulated one)
Returns
array

Definition at line 231 of file RecordCollectionRepositoryTest.php.

References $result.

Referenced by TYPO3\CMS\Core\Tests\Unit\Collection\RecordCollectionRepositoryTest\getRowsCallback(), and TYPO3\CMS\Core\Tests\Unit\Collection\RecordCollectionRepositoryTest\getSingleRowCallback().

◆ setUp()

TYPO3\CMS\Core\Tests\Unit\Collection\RecordCollectionRepositoryTest::setUp ( )
protected

Sets up this test case.

Definition at line 52 of file RecordCollectionRepositoryTest.php.

References TYPO3\CMS\Core\Tests\BaseTestCase\getUniqueId().

Member Data Documentation

◆ $databaseMock

TYPO3\CMS\Core\Tests\Unit\Collection\RecordCollectionRepositoryTest::$databaseMock
protected

Definition at line 32 of file RecordCollectionRepositoryTest.php.

◆ $fixture

TYPO3\CMS\Core\Tests\Unit\Collection\RecordCollectionRepositoryTest::$fixture
protected

Definition at line 27 of file RecordCollectionRepositoryTest.php.

◆ $getRowsCallbackReturnValue

TYPO3\CMS\Core\Tests\Unit\Collection\RecordCollectionRepositoryTest::$getRowsCallbackReturnValue
protected

◆ $getSingleRowCallbackReturnValue

TYPO3\CMS\Core\Tests\Unit\Collection\RecordCollectionRepositoryTest::$getSingleRowCallbackReturnValue
protected

◆ $testTableName

TYPO3\CMS\Core\Tests\Unit\Collection\RecordCollectionRepositoryTest::$testTableName
protected

Definition at line 47 of file RecordCollectionRepositoryTest.php.