PHP Class lithium\tests\cases\data\source\mongo_db\ExporterTest

Inheritance: extends lithium\test\Unit
Show file Open project: unionofrad/lithium

Protected Properties

Property Type Description
$_handlers
$_model
$_schema

Public Methods

Method Description
setUp ( )
skip ( )
tearDown ( )
testAppendExistingObjects ( ) Tests that when an existing object is attached as a value of another existing object, the whole sub-object is re-written to the new value.
testAppendingNestedObjectArray ( ) Tests that arrays of nested objects can be appended to and will be updated using the proper MongoDB operators.
testArrayConversion ( )
testArrayFieldChange ( ) Allow basic type field to be replaced by a Document / DocumentSet type.
testCreateWithChangedData ( )
testCreateWithFixedData ( )
testCreateWithWhitelist ( )
testEmptyArrayAsDocument ( )
testExistingNestedKeyOverwrite ( ) Tests that a nested key on a previously saved document gets updated properly.
testFieldRemoval ( )
testIndexesOnExportingDocument ( )
testIndexesOnExportingDocumentSet ( )
testInvalid ( )
testNestedArrayMongoIdCasting ( ) Tests the casting of MongoIds in nested arrays.
testNestedObjectCasting ( )
testSubObjectCastingOnSave ( ) Test that sub-objects are properly casted on creating a new Document.
testToDataOnDocument ( )
testToDataOnDocumentSet ( )
testTypeCasting ( ) Tests handling type values based on specified schema settings.
testTypeCastingSubObjectArrays ( ) Tests handling type values of subdocument arrays based on specified schema settings.
testUpdateFromResourceLoading ( )
testUpdateWithNoChanges ( )
testUpdateWithSubObjects ( )
testUpdatingArraysAndExporting ( )
testUpdatingMongoIdArray ( ) Tests that updating arrays of MongoIds correctly preserves their type.
testWithArraySchema ( )

Method Details

setUp() public method

public setUp ( )

skip() public method

public skip ( )

tearDown() public method

public tearDown ( )

testAppendExistingObjects() public method

Tests that when an existing object is attached as a value of another existing object, the whole sub-object is re-written to the new value.

testAppendingNestedObjectArray() public method

Tests that arrays of nested objects can be appended to and will be updated using the proper MongoDB operators.

testArrayConversion() public method

public testArrayConversion ( )

testArrayFieldChange() public method

Allow basic type field to be replaced by a Document / DocumentSet type.

testCreateWithChangedData() public method

testCreateWithFixedData() public method

testCreateWithWhitelist() public method

testEmptyArrayAsDocument() public method

testExistingNestedKeyOverwrite() public method

Tests that a nested key on a previously saved document gets updated properly.

testFieldRemoval() public method

public testFieldRemoval ( )

testIndexesOnExportingDocument() public method

testIndexesOnExportingDocumentSet() public method

testInvalid() public method

public testInvalid ( )

testNestedArrayMongoIdCasting() public method

Tests the casting of MongoIds in nested arrays.

testNestedObjectCasting() public method

testSubObjectCastingOnSave() public method

Test that sub-objects are properly casted on creating a new Document.

testToDataOnDocument() public method

testToDataOnDocumentSet() public method

testTypeCasting() public method

Tests handling type values based on specified schema settings.
public testTypeCasting ( )

testTypeCastingSubObjectArrays() public method

Tests handling type values of subdocument arrays based on specified schema settings.

testUpdateFromResourceLoading() public method

testUpdateWithNoChanges() public method

testUpdateWithSubObjects() public method

testUpdatingArraysAndExporting() public method

testUpdatingMongoIdArray() public method

Tests that updating arrays of MongoIds correctly preserves their type.

testWithArraySchema() public method

public testWithArraySchema ( )

Property Details

$_handlers protected property

protected $_handlers

$_model protected property

protected $_model

$_schema protected property

protected $_schema