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

Class: WebDavTest

Source Location: /modules/webdav/test/phpunit/WebDavTest.class

Class WebDavTest

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 ]
Method Summary
WebDavTest   WebDavTest()  
void   setUp()  
void   skip()  
void   tearDown()  
void   testAdd()  
void   testAddEmptyBody()   Mac OS X and GNOME both make PUT requests with empty bodies.
void   testAddMustBePutRequest()  
void   testDelete()  
void   testDeleteWithoutDeletePermission()  
void   testIgnoreMacDotDsStoreFiles()  
void   testIgnoreMacDotUnderscoreFiles()  
void   testIllegalDestination()  
void   testLockConflict()  
void   testLockRefresh()  
void   testLockUnlock()  
void   testLockWithoutPermission()  
void   testMissingObject()  
void   testMkcol()  
void   testMkcolIllegalPathComponent()  
void   testMkcolWithoutAddAlbumPermission()  
void   testMove()  
void   testMoveWithoutAddPermission()  
void   testMoveWithoutDeletePermission()  
void   testOptions()  
void   testPropfind()  
void   testPropfindCollectionDepth0()  
void   testPropfindCollectionDepth1()  
void   testPropfindCollectionDepthInfinityWithoutViewPermission()  
void   testPropfindWithoutViewPermission()  
void   testProppatch()  
void   testProppatchWithoutEditPermission()  
void   testProppatchWithXss()  
void   testPutAndGetIllegalPathComponent()   Illegal path components will be silently legalized, but treated consistently so if you PUT an illegal path, a subsequent GET of the same path will refer to the same item.
void   testPutWithoutAddItemPermission()  
void   testRename()  
void   testRenameWithoutEditPermission()  
void   testReplace()  
void   testReplaceLinkedItemFails()  
void   testReplaceWithoutEditPermissions()  
GalleryStatus   _becomeGuestUserWithPermission()   Same as GalleryTestCase::_becomeGuestUser but also adds the specified permissions for the test items.
void   _getHref()  
void   _streamWrapperRegistration()  
void   _testIgnoreFile()  
array   _testLock()   Helper function for lock tests.
GalleryStatus   _testUnlock()   Helper function for lock tests.

[ Top ]
Methods
Constructor WebDavTest  [line 37]

  WebDavTest WebDavTest( $methodName  )

Parameters:
   $methodName: 


[ Top ]
setUp  [line 41]

  void setUp( )



Redefinition of:
GalleryTestCase::setUp()

[ Top ]
skip  [line 160]

  void skip( )



[ Top ]
tearDown  [line 152]

  void tearDown( )



Redefinition of:
GalleryTestCase::tearDown()

[ Top ]
testAdd  [line 928]

  void testAdd( )



[ Top ]
testAddEmptyBody  [line 994]

  void testAddEmptyBody( )

Mac OS X and GNOME both make PUT requests with empty bodies.



[ Top ]
testAddMustBePutRequest  [line 1043]

  void testAddMustBePutRequest( )



[ Top ]
testDelete  [line 860]

  void testDelete( )



[ Top ]
testDeleteWithoutDeletePermission  [line 897]

  void testDeleteWithoutDeletePermission( )



[ Top ]
testIgnoreMacDotDsStoreFiles  [line 2025]

  void testIgnoreMacDotDsStoreFiles( )



[ Top ]
testIgnoreMacDotUnderscoreFiles  [line 2018]

  void testIgnoreMacDotUnderscoreFiles( )



[ Top ]
testIllegalDestination  [line 1977]

  void testIllegalDestination( )



[ Top ]
testLockConflict  [line 1767]

  void testLockConflict( )



[ Top ]
testLockRefresh  [line 1694]

  void testLockRefresh( )



[ Top ]
testLockUnlock  [line 1671]

  void testLockUnlock( )



[ Top ]
testLockWithoutPermission  [line 1843]

  void testLockWithoutPermission( )



[ Top ]
testMissingObject  [line 1858]

  void testMissingObject( )



[ Top ]
testMkcol  [line 779]

  void testMkcol( )



[ Top ]
testMkcolIllegalPathComponent  [line 2087]

  void testMkcolIllegalPathComponent( )



[ Top ]
testMkcolWithoutAddAlbumPermission  [line 827]

  void testMkcolWithoutAddAlbumPermission( )



[ Top ]
testMove  [line 1261]

  void testMove( )


Information Tags:
Todo:  What does a query-string based WebDAV client send in HTTP_DESTINATION?

[ Top ]
testMoveWithoutAddPermission  [line 1393]

  void testMoveWithoutAddPermission( )



[ Top ]
testMoveWithoutDeletePermission  [line 1328]

  void testMoveWithoutDeletePermission( )



[ Top ]
testOptions  [line 193]

  void testOptions( )



[ Top ]
testPropfind  [line 217]

  void testPropfind( )



[ Top ]
testPropfindCollectionDepth0  [line 414]

  void testPropfindCollectionDepth0( )



[ Top ]
testPropfindCollectionDepth1  [line 472]

  void testPropfindCollectionDepth1( )



[ Top ]
testPropfindCollectionDepthInfinityWithoutViewPermission  [line 333]

  void testPropfindCollectionDepthInfinityWithoutViewPermission( )



[ Top ]
testPropfindWithoutViewPermission  [line 289]

  void testPropfindWithoutViewPermission( )



[ Top ]
testProppatch  [line 576]

  void testProppatch( )



[ Top ]
testProppatchWithoutEditPermission  [line 728]

  void testProppatchWithoutEditPermission( )



[ Top ]
testProppatchWithXss  [line 652]

  void testProppatchWithXss( )



[ Top ]
testPutAndGetIllegalPathComponent  [line 1900]

  void testPutAndGetIllegalPathComponent( )

Illegal path components will be silently legalized, but treated consistently so if you PUT an illegal path, a subsequent GET of the same path will refer to the same item.



[ Top ]
testPutWithoutAddItemPermission  [line 1059]

  void testPutWithoutAddItemPermission( )



[ Top ]
testRename  [line 1458]

  void testRename( )



[ Top ]
testRenameWithoutEditPermission  [line 1514]

  void testRenameWithoutEditPermission( )



[ Top ]
testReplace  [line 1109]

  void testReplace( )



[ Top ]
testReplaceLinkedItemFails  [line 1207]

  void testReplaceLinkedItemFails( )



[ Top ]
testReplaceWithoutEditPermissions  [line 1163]

  void testReplaceWithoutEditPermissions( )



[ Top ]
_becomeGuestUserWithPermission  [line 131]

  GalleryStatus _becomeGuestUserWithPermission( [array $permissions = array()]  )

Same as GalleryTestCase::_becomeGuestUser but also adds the specified permissions for the test items.

Parameters:
array   $permissions:  (optional) An array of Gallery permission ids.


[ Top ]
_getHref  [line 180]

  void _getHref( $path, [ $addController = true]  )

Parameters:
   $path: 
   $addController: 


[ Top ]
_streamWrapperRegistration  [line 165]

  void _streamWrapperRegistration( [ $unregister = false]  )

Parameters:
   $unregister: 


[ Top ]
_testIgnoreFile  [line 2032]

  void _testIgnoreFile( $pathComponent  )

Parameters:
   $pathComponent: 


[ Top ]
_testLock  [line 1571]

  array _testLock( [string $path = null]  )

Helper function for lock tests.

Parameters:
string   $path:  (optional) resource to lock. Defaults to test item.

API Tags:
Return:  GalleryStatus a status code array new WebDAV lock (scope, type, depth, owner, expires, token, path)


[ Top ]
_testUnlock  [line 1644]

  GalleryStatus _testUnlock( array $lock  )

Helper function for lock tests.

Parameters:
array   $lock:  WebDAV lock to unlock (scope, type, depth, owner, expires, token, path)

API Tags:
Return:  a status code


[ Top ]

Documentation generated on Fri, 08 Oct 2010 06:11:37 -0700 by phpDocumentor 1.3.0RC6