| alpha--tests

# Class: AlphaDAO_Test Source Location: /tests/AlphaDAO_Test.php ## Class AlphaDAO_Test Class Overview
Test case for the AlphaDAO class Located in /tests/AlphaDAO_Test.php [line 48]
    PHPUnit_Framework_TestCase
       |
       --AlphaDAO_Test
Author(s): John Collins <dev@alphaframework.org> Information Tags:
Version: | $Id: AlphaDAO_Test.php 1453 2011-12-04 15:12:54Z johnc $
Copyright: | Copyright (c) 2011, John Collins (founder of Alpha Framework). All rights reserved.
     Redistribution and use in source and binary forms, with or
     without modification, are permitted provided that the
     following conditions are met:

     * Redistributions of source code must retain the above
       copyright notice, this list of conditions and the
       following disclaimer.
     * Redistributions in binary form must reproduce the above
       copyright notice, this list of conditions and the
       following disclaimer in the documentation and/or other
       materials provided with the distribution.
     * Neither the name of the Alpha Framework nor the names
       of its contributors may be used to endorse or promote
       products derived from this software without specific
       prior written permission.

     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
     CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
     INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
     MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
     DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
     CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
     SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
     LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
     OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
     SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Since: | 1.0
License: | The BSD License
| Methods setUp tearDown testBasicLoadSave testCheckRecordExists testCheckTableExists testCheckTableNeedsUpdate testClear testDefaultHouseKeepingValues testDelete testDeleteAllByAttribute testGetCount testGetDataLabel testGetDataLabels testGetLastQuery testGetMAX testGetNoChildMethod testGetNoChildMethodsDisabled testGetNoChildMethodsEnabled testGetPropObjectComplexType testGetPropObjectSimpleType testGetSimpleType testGetTableName testGetTransientAttributes testGetVersion testIsTransient testLoadAll testLoadAllByAttribute testLoadAllByAttributes testLoadAllByDayUpdated testLoadAllFieldValuesByAttribute testLoadByAttribute testMarkTransientPersistent testSaveAttribute testSaveObjectLocking testSaveTransientOID testSaveTransientOrPersistent testSetEnumOptions testSetNoChildMethod testSetNoChildMethodsDisabled testSetNoChildMethodsEnabled testSetSimpleType testValidation
[ Top ] Method Summary
void | setUp() | Called before the test functions will be executed this function is defined in PHPUnit_TestCase and overwritten here
void | tearDown() | Called after the test functions are executed this function is defined in PHPUnit_TestCase and overwritten here
void | testBasicLoadSave() | Testing the basic load/save functionality
void | testCheckRecordExists() | Testing the checkRecordExists method
void | testCheckTableExists() | Testing that checkTableExists returns true for the person BO
void | testCheckTableNeedsUpdate() | Testing that checkTableNeedsUpdate returns false for the person BO
void | testClear() | Testing the clear method for unsetting the attributes of an object
void | testDefaultHouseKeepingValues() | Test that the constructor sets the correct values of the "house keeping" attributes
void | testDelete() | Testing the delete method
void | testDeleteAllByAttribute() | Testing the deleteAllByAttribute method
void | testGetCount() | Testing the getCount method
void | testGetDataLabel() | Testing the getDataLabel method
void | testGetDataLabels() | Testing the getDataLabels method
void | testGetLastQuery() | Testing the getLastQuery method after various persistance calls
void | testGetMAX() | Testing the getMAX method
void | testGetNoChildMethod() | Testing get on a String attribute with no child get method available
void | testGetNoChildMethodsDisabled() | Testing get on an Enum attribute with a child method available, with $noChildMethods disabled (default)
void | testGetNoChildMethodsEnabled() | Testing get on an Enum attribute with a child method available, with $noChildMethods enabled
void | testGetPropObjectComplexType() | Testing getPropObject on a complex type
void | testGetPropObjectSimpleType() | Testing getPropObject on a simple type
void | testGetSimpleType() | Testing get on a simple data type
void | testGetTableName() | Testing to ensure that the getTableName method can read the TABLE_NAME constant declared in the child class
void | testGetTransientAttributes() | Testing the getTransientAttributes method in conjunction with markTransient/markPersistent
void | testGetVersion() | Testing the version numbers of business objects
void | testIsTransient() | Testing isTransient before and after save
void | testLoadAll() | Testing loadAll method
void | testLoadAllByAttribute() | Testing the loadAllByAttribute method
void | testLoadAllByAttributes() | Testing the loadAllByAttributes method
void | testLoadAllByDayUpdated() | Testing the loadAllByDayUpdated method
void | testLoadAllFieldValuesByAttribute() | Testing the loadAllFieldValuesByAttribute method
void | testLoadByAttribute() | Testing the loadByAttribute method
void | testMarkTransientPersistent() | Testing that markTransient and markPersistent methods
void | testSaveAttribute() | Testing the saveAttribute method
void | testSaveObjectLocking() | Testing optimistic locking mechanism#
void | testSaveTransientOID() | Testing to ensure that a transient object, once saved, will have an OID
void | testSaveTransientOrPersistent() | Testing the save method on transient and non-transient objects
void | testSetEnumOptions() | Testing the setEnumOptions method is loading enum options correctly
void | testSetNoChildMethod() | Testing set on a String attribute with no child get method available
void | testSetNoChildMethodsDisabled() | Testing set on an Enum attribute with a child method available, with $noChildMethods disabled (default)
void | testSetNoChildMethodsEnabled() | Testing set on an Enum attribute with a child method available, with $noChildMethods enabled
void | testSetSimpleType() | Testing set on a simple data type
void | testValidation() | Testing the validation method
[ Top ] Methods setUp [line 64]
`void setUp( )`
Called before the test functions will be executed this function is defined in PHPUnit_TestCase and overwritten here API Tags:
Access: | protected
Information Tags:
Since: | 1.0
[ Top ] tearDown [line 82]
`void tearDown( )`
Called after the test functions are executed this function is defined in PHPUnit_TestCase and overwritten here API Tags:
Access: | protected
Information Tags:
Since: | 1.0
[ Top ] testBasicLoadSave [line 138]
`void testBasicLoadSave( )`
Testing the basic load/save functionality API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testCheckRecordExists [line 150]
`void testCheckRecordExists( )`
Testing the checkRecordExists method API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testCheckTableExists [line 414]
`void testCheckTableExists( )`
Testing that checkTableExists returns true for the person BO API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testCheckTableNeedsUpdate [line 423]
`void testCheckTableNeedsUpdate( )`
Testing that checkTableNeedsUpdate returns false for the person BO API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testClear [line 657]
`void testClear( )`
Testing the clear method for unsetting the attributes of an object API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testDefaultHouseKeepingValues [line 112]
`void testDefaultHouseKeepingValues( )`
Test that the constructor sets the correct values of the "house keeping" attributes API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testDelete [line 307]
`void testDelete( )`
Testing the delete method API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testDeleteAllByAttribute [line 331]
`void testDeleteAllByAttribute( )`
Testing the deleteAllByAttribute method API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testGetCount [line 390]
`void testGetCount( )`
Testing the getCount method API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testGetDataLabel [line 442]
`void testGetDataLabel( )`
Testing the getDataLabel method API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testGetDataLabels [line 595]
`void testGetDataLabels( )`
Testing the getDataLabels method API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testGetLastQuery [line 634]
`void testGetLastQuery( )`
Testing the getLastQuery method after various persistance calls API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testGetMAX [line 377]
`void testGetMAX( )`
Testing the getMAX method API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testGetNoChildMethod [line 451]
`void testGetNoChildMethod( )`
Testing get on a String attribute with no child get method available API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testGetNoChildMethodsDisabled [line 462]
`void testGetNoChildMethodsDisabled( )`
Testing get on an Enum attribute with a child method available, with $noChildMethods disabled (default) API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testGetNoChildMethodsEnabled [line 476]
`void testGetNoChildMethodsEnabled( )`
Testing get on an Enum attribute with a child method available, with $noChildMethods enabled API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testGetPropObjectComplexType [line 547]
`void testGetPropObjectComplexType( )`
Testing getPropObject on a complex type API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testGetPropObjectSimpleType [line 559]
`void testGetPropObjectSimpleType( )`
Testing getPropObject on a simple type API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testGetSimpleType [line 487]
`void testGetSimpleType( )`
Testing get on a simple data type API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testGetTableName [line 432]
`void testGetTableName( )`
Testing to ensure that the getTableName method can read the TABLE_NAME constant declared in the child class API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testGetTransientAttributes [line 607]
`void testGetTransientAttributes( )`
Testing the getTransientAttributes method in conjunction with markTransient/markPersistent API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testGetVersion [line 361]
`void testGetVersion( )`
Testing the version numbers of business objects API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testIsTransient [line 623]
`void testIsTransient( )`
Testing isTransient before and after save API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testLoadAll [line 174]
`void testLoadAll( )`
Testing loadAll method API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testLoadAllByAttribute [line 189]
`void testLoadAllByAttribute( )`
Testing the loadAllByAttribute method API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testLoadAllByAttributes [line 202]
`void testLoadAllByAttributes( )`
Testing the loadAllByAttributes method API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testLoadAllByDayUpdated [line 215]
`void testLoadAllByDayUpdated( )`
Testing the loadAllByDayUpdated method API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testLoadAllFieldValuesByAttribute [line 227]
`void testLoadAllFieldValuesByAttribute( )`
Testing the loadAllFieldValuesByAttribute method API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testLoadByAttribute [line 161]
`void testLoadByAttribute( )`
Testing the loadByAttribute method API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testMarkTransientPersistent [line 571]
`void testMarkTransientPersistent( )`
Testing that markTransient and markPersistent methods API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testSaveAttribute [line 702]
`void testSaveAttribute( )`
Testing the saveAttribute method API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testSaveObjectLocking [line 266]
`void testSaveObjectLocking( )`
Testing optimistic locking mechanism# API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testSaveTransientOID [line 254]
`void testSaveTransientOID( )`
Testing to ensure that a transient object, once saved, will have an OID API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testSaveTransientOrPersistent [line 238]
`void testSaveTransientOrPersistent( )`
Testing the save method on transient and non-transient objects API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testSetEnumOptions [line 401]
`void testSetEnumOptions( )`
Testing the setEnumOptions method is loading enum options correctly API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testSetNoChildMethod [line 498]
`void testSetNoChildMethod( )`
Testing set on a String attribute with no child get method available API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testSetNoChildMethodsDisabled [line 509]
`void testSetNoChildMethodsDisabled( )`
Testing set on an Enum attribute with a child method available, with $noChildMethods disabled (default) API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testSetNoChildMethodsEnabled [line 521]
`void testSetNoChildMethodsEnabled( )`
Testing set on an Enum attribute with a child method available, with $noChildMethods enabled API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testSetSimpleType [line 533]
`void testSetSimpleType( )`
Testing set on a simple data type API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testValidation [line 290]
`void testValidation( )`
Testing the validation method API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] Documentation generated on Tue, 13 Dec 2011 20:26:01 +0000 by phpDocumentor 1.4.3