phpDocumentor GalleryCore
PHPUnit
[ class tree: GalleryCore ] [ index: GalleryCore ] [ all elements ]

Class: RepositoryTest

Source Location: /modules/core/test/phpunit/RepositoryTest.class

Class RepositoryTest

Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From GalleryTestCase

GalleryTestCase::$_cleanup

Inherited From GalleryTestCase

GalleryTestCase::GalleryTestCase()
GalleryTestCase::assert()
GalleryTestCase::assertEquals()
GalleryTestCase::assertErrorEquals()
Fail if the provided GalleryStatus object does not contain the given error code.
GalleryTestCase::assertEventFired()
Fail if the provided event name was not fired.
GalleryTestCase::assertEventNotFired()
Fail if the provided event name was fired
GalleryTestCase::DeepCompare()
GalleryTestCase::failWithStatus()
This is deprecated in Gallery 2.3 -- now tests should just return $ret and let the framework generate the right failure message.
GalleryTestCase::getEntityCounter()
Get the entity counter listener which contains the types and number of elements deleted.
GalleryTestCase::setUp()
GalleryTestCase::tearDown()
GalleryTestCase::_array_unshift_key_value()
Utility method to array_unshift a single key => value pair.
GalleryTestCase::_becomeGuestUser()
GalleryTestCase::_createDerivative()
GalleryTestCase::_createLinkedItem()
Create a random link item
GalleryTestCase::_createRandomAlbum()
Create a random album
GalleryTestCase::_createRandomDataItem()
Create a random data item
GalleryTestCase::_createRandomGroup()
Create a random group
GalleryTestCase::_createRandomUser()
Create a random user
GalleryTestCase::_createUser()
GalleryTestCase::_deleteAndVerifyEntity()
GalleryTestCase::_disableUserName()
Convenience method to mark a username as disabled.
GalleryTestCase::_getRootId()
GalleryTestCase::_getUnusedId()
Get an id that is not used for anything.
GalleryTestCase::_initEventListenersForTest()
Disable all but some core event listeners by default.
GalleryTestCase::_markEventListenersForCleanup()
Create a backup of the registered event listeners which will be restored in tearDown.
GalleryTestCase::_markFactoryForCleanup()
Create a backup of the factory data which will be restored in tearDown.
GalleryTestCase::_markFactoryModuleForCleanup()
GalleryTestCase::_markForCleanup()
GalleryTestCase::_markPluginParametersForCleanup()
Store plugin parameters to be restored in tearDown
GalleryTestCase::_markToolkitForCleanup()
GalleryTestCase::_registerEventListener()
Register a The NullEventListener for a test
GalleryTestCase::_registerFactoryImplementationForTest()
Register a factory implementation temporarily for this test.
GalleryTestCase::_registerTestEventListener()
Register and event name and associated listener (deprecated).
GalleryTestCase::_setMarkupType()
Set core parameter for markup type.
GalleryTestCase::_signUrl()
Adds an authToken to the given URL
GalleryTestCase::_unregisterFactoryImplementationForTest()
Unregister a specific factory implementation or all implementations of a spefific type temporarily for this test.
GalleryTestCase::_verifyEntity()
GalleryTestCase::_verifyFields()
GalleryTestCase::_verifyMissing()

[ Top ]
Property Summary
mixed   $_index  
mixed   $_sampleIndex  

[ Top ]
Method Summary
string   calculateVersion()   Adds/subtracts two version strings and returns the result.
void   setUp()  
void   testComparePluginListEntries()  
void   testCreatePluginDirectory()  
void   testDownloadAndUnpack()  
void   testDownloadAndUnpackPackages()  
void   testDownloadAndUnpackPackagesFailed()  
void   testDownloadAndUnpackPackagesLockedFiles()  
void   testDownloadAndUnpackPackagesNoDescriptors()  
void   testGetDownloadFileList()  
void   testGetPluginUpgradeInfoForBasePackageUpgrade()  
void   testGetPluginUpgradeInfoInstalledVersionNewer()  
void   testGetRepositoriesAndClearCache()  
void   testGetRepositoryPluginList()  
void   testGetRepositoryPluginListThemeGroupLabel()  
void   testIsCoreUpgradeAvailable()  
void   testRemoveObsoleteFiles()  
void   testScanLockedPlugin()  
void   testScanPlugin()  
void   testScanPluginWithNoManifest()  
void   testScanPluginWithNoPoDir()  
void   testUpgrade()   Test getAllUpgradeablePackages and getUpgradeInfo.
void   _buildDescriptor()  
void   _getRepositoryPluginListTestCase()  
void   _getUpgradeTestCase()  
void   _prepareForGetPluginUpgradeInfo()  
void   _setDownloadAndUnpackPackagesResponses()  
void   _setupRepositoryPluginListResponses()  
void   _setupUpdateUtilitiesResponses()  

[ Top ]
Properties
mixed   $_index [line 41]

[ Top ]
mixed   $_sampleIndex [line 42]

[ Top ]
Methods
calculateVersion  [line 764]

  string calculateVersion( string $operand1, string $operand2, string $operator  )

Adds/subtracts two version strings and returns the result.

This is a helper function for testIsCoreUpgradeAvailable. Examples: calculateVersion(1.2.0, 0.1.0, '+') = 1.3.0 calculateVersion(1.2.0, 1.1.0, '-') = 0.1.0

Parameters:
string   $operand1:  first operand
string   $operand2:  second operand
string   $operator:  operator, '+' or '-'

API Tags:
Return:  result


[ Top ]
setUp  [line 44]

  void setUp( )



Redefinition of:
GalleryTestCase::setUp()

[ Top ]
testComparePluginListEntries  [line 1032]

  void testComparePluginListEntries( )



[ Top ]
testCreatePluginDirectory  [line 1046]

  void testCreatePluginDirectory( )



[ Top ]
testDownloadAndUnpack  [line 1113]

  void testDownloadAndUnpack( )



[ Top ]
testDownloadAndUnpackPackages  [line 1628]

  void testDownloadAndUnpackPackages( )



[ Top ]
testDownloadAndUnpackPackagesFailed  [line 1791]

  void testDownloadAndUnpackPackagesFailed( )



[ Top ]
testDownloadAndUnpackPackagesLockedFiles  [line 1682]

  void testDownloadAndUnpackPackagesLockedFiles( )



[ Top ]
testDownloadAndUnpackPackagesNoDescriptors  [line 1739]

  void testDownloadAndUnpackPackagesNoDescriptors( )



[ Top ]
testGetDownloadFileList  [line 1088]

  void testGetDownloadFileList( )



[ Top ]
testGetPluginUpgradeInfoForBasePackageUpgrade  [line 1453]

  void testGetPluginUpgradeInfoForBasePackageUpgrade( )



[ Top ]
testGetPluginUpgradeInfoInstalledVersionNewer  [line 1475]

  void testGetPluginUpgradeInfoInstalledVersionNewer( )



[ Top ]
testGetRepositoriesAndClearCache  [line 1388]

  void testGetRepositoriesAndClearCache( )



[ Top ]
testGetRepositoryPluginList  [line 926]

  void testGetRepositoryPluginList( )



[ Top ]
testGetRepositoryPluginListThemeGroupLabel  [line 982]

  void testGetRepositoryPluginListThemeGroupLabel( )



[ Top ]
testIsCoreUpgradeAvailable  [line 690]

  void testIsCoreUpgradeAvailable( )



[ Top ]
testRemoveObsoleteFiles  [line 1820]

  void testRemoveObsoleteFiles( )



[ Top ]
testScanLockedPlugin  [line 1289]

  void testScanLockedPlugin( )



[ Top ]
testScanPlugin  [line 1177]

  void testScanPlugin( )



[ Top ]
testScanPluginWithNoManifest  [line 1355]

  void testScanPluginWithNoManifest( )



[ Top ]
testScanPluginWithNoPoDir  [line 1244]

  void testScanPluginWithNoPoDir( )



[ Top ]
testUpgrade  [line 591]

  void testUpgrade( )

Test getAllUpgradeablePackages and getUpgradeInfo.



[ Top ]
_buildDescriptor  [line 1597]

  void _buildDescriptor( $pluginData  )

Parameters:
   $pluginData: 


[ Top ]
_getRepositoryPluginListTestCase  [line 799]

  void _getRepositoryPluginListTestCase( $testCase  )

Parameters:
   $testCase: 


[ Top ]
_getUpgradeTestCase  [line 94]

  void _getUpgradeTestCase( $testCase  )

Parameters:
   $testCase: 


[ Top ]
_prepareForGetPluginUpgradeInfo  [line 1412]

  void _prepareForGetPluginUpgradeInfo( [ $isNewer = false]  )

Parameters:
   $isNewer: 


[ Top ]
_setDownloadAndUnpackPackagesResponses  [line 1497]

  void _setDownloadAndUnpackPackagesResponses( $testData, &$callback  )

Parameters:
   $testData: 
   &$callback: 


[ Top ]
_setupRepositoryPluginListResponses  [line 774]

  void _setupRepositoryPluginListResponses( &$utilities, $case  )

Parameters:
   &$utilities: 
   $case: 


[ Top ]
_setupUpdateUtilitiesResponses  [line 63]

  void _setupUpdateUtilitiesResponses( &$utilities, $index, $case, [ $pluginType = 'module']  )

Parameters:
   &$utilities: 
   $index: 
   $case: 
   $pluginType: 


[ Top ]

Documentation generated on Fri, 08 Oct 2010 05:49:59 -0700 by phpDocumentor 1.3.0RC6