PHP Class Phalcon\Test\Mvc\Model\EagerLoading\EagerLoadingTest

Author: Óscar Enríquez
Inheritance: extends Codeception\TestCase\Test
Datei anzeigen Open project: phalcon/incubator Class Usage Examples

Protected Properties

Property Type Description
$previousDependencyInjector Phalcon\DiInterface
$tester UnitTester UnitTester Object

Public Methods

Method Description
providerIncompleteEntity ( )
providerRelationIsNotDefinedOrSupported ( )
providerSubjectIsNotValid ( )
providerWithoutArguments ( )
testBelongsTo ( )
testManyEagerLoadsAndConstraints ( )
testShouldLoadChildOfEmptyParentWithoutException ( ) https://github.com/stibiumz/phalcon.eager-loading/issues/4
testShouldThrowBadMethodCallExceptionIfArgumentsWereNotProvided ( string $method )
testShouldThrowInvalidArgumentExceptionIfLoaderSubjectIsNotValid ( array $args )
testShouldThrowLogicExceptionIfTheEntityWillBeIncomplete ( string $method, array $args )
testShouldThrowRuntimeExceptionIfTheRelationIsNotDefinedOrSupported ( array $args )
testShouldUseEagerLoadingAndDetectBelongsToDeep ( )
testShouldUseEagerLoadingAndDetectHasMany ( )
testShouldUseEagerLoadingAndDetectHasManyToMany ( )
testShouldUseEagerLoadingAndDetectHasOne ( )
testShouldUseEagerLoadingAndGetModelByUsingMethods ( )

Protected Methods

Method Description
_after ( ) executed after each test
_before ( ) executed before each test
resultSetToEagerLoadingEquivalent ( $val )

Method Details

_after() protected method

executed after each test
protected _after ( )

_before() protected method

executed before each test
protected _before ( )

providerIncompleteEntity() public method

providerRelationIsNotDefinedOrSupported() public method

providerSubjectIsNotValid() public method

providerWithoutArguments() public method

resultSetToEagerLoadingEquivalent() protected method

testBelongsTo() public method

public testBelongsTo ( )

testManyEagerLoadsAndConstraints() public method

testShouldLoadChildOfEmptyParentWithoutException() public method

https://github.com/stibiumz/phalcon.eager-loading/issues/4

testShouldThrowBadMethodCallExceptionIfArgumentsWereNotProvided() public method

testShouldThrowInvalidArgumentExceptionIfLoaderSubjectIsNotValid() public method

testShouldThrowLogicExceptionIfTheEntityWillBeIncomplete() public method

testShouldThrowRuntimeExceptionIfTheRelationIsNotDefinedOrSupported() public method

testShouldUseEagerLoadingAndDetectBelongsToDeep() public method

testShouldUseEagerLoadingAndDetectHasMany() public method

testShouldUseEagerLoadingAndDetectHasManyToMany() public method

testShouldUseEagerLoadingAndDetectHasOne() public method

testShouldUseEagerLoadingAndGetModelByUsingMethods() public method

Property Details

$previousDependencyInjector protected_oe property

protected DiInterface,Phalcon $previousDependencyInjector
return Phalcon\DiInterface

$tester protected_oe property

UnitTester Object
protected UnitTester $tester
return UnitTester