PHP Class eZ\Publish\Core\Repository\Tests\Service\Mock\SearchTest

Inheritance: extends Base
Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$domainMapperMock
$permissionsCriterionHandlerMock
$repositoryMock

Public Methods

Method Description
providerForFindContentValidatesLocationCriteriaAndSortClauses ( )
providerForFindSingleValidatesLocationCriteria ( )
testConstructor ( ) Test for the __construct() method.
testFindContentNoPermissionsFilter ( ) Test for the findContent() method.
testFindContentThrowsHandlerException ( ) Test for the findContent() method.
testFindContentValidatesLocationCriteriaAndSortClauses ( $query, $exceptionMessage )
testFindContentWithDefaultQueryValues ( ) Test for the findContent() method.
testFindContentWithNoPermission ( ) Test for the findContent() method.
testFindContentWithPermission ( ) Test for the findContent() method.
testFindLocationsThrowsHandlerException ( ) Test for the findLocations() method.
testFindLocationsWithDefaultQueryValues ( ) Test for the findContent() method.
testFindLocationsWithNoPermissionsFilter ( ) Test for the findLocations() method.
testFindLocationsWithPermission ( ) Test for the findLocations() method.
testFindSingle ( ) Test for the findSingle() method.
testFindSingleThrowsHandlerException ( ) Test for the findSingle() method.
testFindSingleThrowsNotFoundException ( ) Test for the findSingle() method.
testFindSingleValidatesLocationCriteria ( $criterion, $exceptionMessage )

Protected Methods

Method Description
getDomainMapperMock ( ) : PHPUnit_Framework_MockObject_MockObject | DomainMapper
getPermissionsCriterionHandlerMock ( ) : PHPUnit_Framework_MockObject_MockObject | PermissionsCriterionHandler

Method Details

getDomainMapperMock() protected method

protected getDomainMapperMock ( ) : PHPUnit_Framework_MockObject_MockObject | DomainMapper
return PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\Repository\Helper\DomainMapper

getPermissionsCriterionHandlerMock() protected method

protected getPermissionsCriterionHandlerMock ( ) : PHPUnit_Framework_MockObject_MockObject | PermissionsCriterionHandler
return PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\Repository\PermissionsCriterionHandler

providerForFindContentValidatesLocationCriteriaAndSortClauses() public method

providerForFindSingleValidatesLocationCriteria() public method

testConstructor() public method

Test for the __construct() method.
public testConstructor ( )

testFindContentNoPermissionsFilter() public method

Test for the findContent() method.

testFindContentThrowsHandlerException() public method

Test for the findContent() method.

testFindContentValidatesLocationCriteriaAndSortClauses() public method

public testFindContentValidatesLocationCriteriaAndSortClauses ( $query, $exceptionMessage )

testFindContentWithDefaultQueryValues() public method

Test for the findContent() method.

testFindContentWithNoPermission() public method

Test for the findContent() method.

testFindContentWithPermission() public method

Test for the findContent() method.

testFindLocationsThrowsHandlerException() public method

Test for the findLocations() method.

testFindLocationsWithDefaultQueryValues() public method

Test for the findContent() method.

testFindLocationsWithNoPermissionsFilter() public method

Test for the findLocations() method.

testFindLocationsWithPermission() public method

Test for the findLocations() method.

testFindSingle() public method

Test for the findSingle() method.
public testFindSingle ( )

testFindSingleThrowsHandlerException() public method

Test for the findSingle() method.

testFindSingleThrowsNotFoundException() public method

Test for the findSingle() method.

testFindSingleValidatesLocationCriteria() public method

public testFindSingleValidatesLocationCriteria ( $criterion, $exceptionMessage )

Property Details

$domainMapperMock protected property

protected $domainMapperMock

$permissionsCriterionHandlerMock protected property

protected $permissionsCriterionHandlerMock

$repositoryMock protected property

protected $repositoryMock