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

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

Protected Properties

Свойство Type Description
$previousDependencyInjector Phalcon\DiInterface
$tester UnitTester UnitTester Object

Méthodes publiques

Méthode 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 ( )

Méthodes protégées

Méthode Description
_after ( ) executed after each test
_before ( ) executed before each test
resultSetToEagerLoadingEquivalent ( $val )

Method Details

_after() protected méthode

executed after each test
protected _after ( )

_before() protected méthode

executed before each test
protected _before ( )

providerIncompleteEntity() public méthode

providerRelationIsNotDefinedOrSupported() public méthode

providerSubjectIsNotValid() public méthode

providerWithoutArguments() public méthode

resultSetToEagerLoadingEquivalent() protected méthode

testBelongsTo() public méthode

public testBelongsTo ( )

testManyEagerLoadsAndConstraints() public méthode

testShouldLoadChildOfEmptyParentWithoutException() public méthode

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

testShouldThrowBadMethodCallExceptionIfArgumentsWereNotProvided() public méthode

testShouldThrowInvalidArgumentExceptionIfLoaderSubjectIsNotValid() public méthode

testShouldThrowLogicExceptionIfTheEntityWillBeIncomplete() public méthode

testShouldThrowRuntimeExceptionIfTheRelationIsNotDefinedOrSupported() public méthode

testShouldUseEagerLoadingAndDetectBelongsToDeep() public méthode

testShouldUseEagerLoadingAndDetectHasMany() public méthode

testShouldUseEagerLoadingAndDetectHasManyToMany() public méthode

testShouldUseEagerLoadingAndDetectHasOne() public méthode

testShouldUseEagerLoadingAndGetModelByUsingMethods() public méthode

Property Details

$previousDependencyInjector protected_oe property

protected DiInterface,Phalcon $previousDependencyInjector
Résultat Phalcon\DiInterface

$tester protected_oe property

UnitTester Object
protected UnitTester $tester
Résultat UnitTester