PHP Class Sokil\Mongo\DocumentRelationTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: sokil/php-mongo

Public Methods

Method Description
setUp ( )
tearDown ( )
testAddRelation_Belongs ( )
testAddRelation_HasMany ( )
testAddRelation_HasOne ( )
testAddRelation_ManyMany ( )
testAddRelation_WronkRelationType ( )
testGetRelated_Belongs ( ) B -> BELONGS -> A
testGetRelated_Belongs_Cache ( )
testGetRelated_Belongs_EmptyRelation ( ) B -> BELONGS -> A
testGetRelated_HasMany ( ) A -> HAS_MANY -> B
testGetRelated_HasMany_EmptyRelation ( ) A -> HAS_MANY -> B
testGetRelated_HasOne ( ) A -> HAS_ONE -> B
testGetRelated_HasOne_DisabledDocumentPool ( ) A -> HAS_ONE -> B
testGetRelated_HasOne_EmptyRelation ( ) A -> HAS_ONE -> B
testGetRelated_ManyMany_RequestFromCollectionWithLocalyStoredRelationData ( )
testGetRelated_ManyMany_RequestFromCollectionWithoutLocalyStoredRelationData ( )
testGetRelated_WrongRelationType ( )
testRelationDefinitionInMapping ( )
testRemoveRelation_Belongs ( )
testRemoveRelation_HasMany ( )
testRemoveRelation_HasOne ( )
testRemoveRelation_ManyMany ( )
testRemoveRelation_WronkRelationType ( )
testUnconsistedState ( )

Method Details

setUp() public method

public setUp ( )

tearDown() public method

public tearDown ( )

testAddRelation_Belongs() public method

testAddRelation_HasMany() public method

testAddRelation_HasOne() public method

testAddRelation_ManyMany() public method

testAddRelation_WronkRelationType() public method

testGetRelated_Belongs() public method

B -> BELONGS -> A

testGetRelated_Belongs_Cache() public method

testGetRelated_Belongs_EmptyRelation() public method

B -> BELONGS -> A

testGetRelated_HasMany() public method

A -> HAS_MANY -> B

testGetRelated_HasMany_EmptyRelation() public method

A -> HAS_MANY -> B

testGetRelated_HasOne() public method

A -> HAS_ONE -> B

testGetRelated_HasOne_DisabledDocumentPool() public method

A -> HAS_ONE -> B

testGetRelated_HasOne_EmptyRelation() public method

A -> HAS_ONE -> B

testGetRelated_ManyMany_RequestFromCollectionWithLocalyStoredRelationData() public method

testGetRelated_ManyMany_RequestFromCollectionWithoutLocalyStoredRelationData() public method

testGetRelated_WrongRelationType() public method

testRelationDefinitionInMapping() public method

testRemoveRelation_Belongs() public method

testRemoveRelation_HasMany() public method

testRemoveRelation_HasOne() public method

testRemoveRelation_ManyMany() public method

testRemoveRelation_WronkRelationType() public method

testUnconsistedState() public method