Author: kn
Date: Tue Oct 2 12:58:35 2007
New Revision: 6329
Log:
- Removed svn files from webdav file backend tests directory
Modified:
trunk/Webdav/tests/backend_file_test.php
trunk/Webdav/tests/data/responses/file/testPropFindAllPropsOnCollection.ser
trunk/Webdav/tests/data/responses/file/testPropFindAllPropsOnResource.ser
trunk/Webdav/tests/data/responses/file/testPropFindNamesOnCollectionDepthInfinite.ser
trunk/Webdav/tests/data/responses/file/testPropFindNamesOnCollectionDepthOne.ser
trunk/Webdav/tests/data/responses/file/testPropFindOnCollection.ser
Modified: trunk/Webdav/tests/backend_file_test.php
==============================================================================
--- trunk/Webdav/tests/backend_file_test.php [iso-8859-1] (original)
+++ trunk/Webdav/tests/backend_file_test.php [iso-8859-1] Tue Oct 2 12:58:35
2007
@@ -80,6 +80,19 @@
dirname( __FILE__ ) . '/data/backend_file',
$this->tempDir . 'backend/'
);
+
+ // Remove SVN directories from temporary backend
+ $svnDirs = ezcFile::findRecursive(
+ $this->tempDir . 'backend/',
+ array( '(/\.svn/entries$)' )
+ );
+
+ foreach ( $svnDirs as $dir )
+ {
+ ezcFile::removeRecursive( dirname( $dir ) );
+ }
+
+ // Explicitely set mtime and ctime
$this->recursiveTouch(
$this->tempDir . 'backend/',
// Change this once 64bit systems are common, or we reached year
2038
@@ -280,7 +293,7 @@
$backend->getAllProperties( '/collection' ),
array(
new ezcWebdavCollection(
- '/collection/.svn'
+ '/collection/deep_collection'
),
new ezcWebdavResource(
'/collection/test.txt'
@@ -298,7 +311,7 @@
{
$backend = new ezcWebdavFileBackend( $this->tempDir . 'backend/' );
- $request = new ezcWebdavGetRequest(
'/collection/.svn/text-base/test.txt.svn-base' );
+ $request = new ezcWebdavGetRequest(
'/collection/deep_collection/deep_test.txt' );
$request->validateHeaders();
$response = $backend->get( $request );
@@ -306,9 +319,9 @@
$response,
new ezcWebdavGetResourceResponse(
new ezcWebdavResource(
- '/collection/.svn/text-base/test.txt.svn-base',
- $backend->getAllProperties(
'/collection/.svn/text-base/test.txt.svn-base' ),
- "Some other contents...\n"
+ '/collection/deep_collection/deep_test.txt',
+ $backend->getAllProperties(
'/collection/deep_collection/deep_test.txt' ),
+ "=========\nTest file\n=========\n\nAnd again some randome
contents...\n"
)
),
'Expected response does not match real response.',
@@ -511,7 +524,7 @@
);
$this->assertTrue(
- is_file( $this->tempDir .
'backend/new_collection/.svn/text-base/test.txt.svn-base' ),
+ is_file( $this->tempDir .
'backend/new_collection/deep_collection/deep_test.txt' ),
'Expected created deep file in collection.'
);
}
@@ -552,7 +565,7 @@
);
$this->assertTrue(
- is_file( $this->tempDir .
'backend/new_collection/.svn/text-base/test.txt.svn-base' ),
+ is_file( $this->tempDir .
'backend/new_collection/deep_collection/deep_test.txt' ),
'Expected created deep file in collection.'
);
@@ -738,7 +751,7 @@
);
$this->assertTrue(
- is_file( $this->tempDir .
'backend/new_collection/.svn/text-base/test.txt.svn-base' ),
+ is_file( $this->tempDir .
'backend/new_collection/deep_collection/deep_test.txt' ),
'Expected created deep file in collection.'
);
}
@@ -789,7 +802,7 @@
);
$this->assertTrue(
- is_file( $this->tempDir .
'backend/new_collection/.svn/text-base/test.txt.svn-base' ),
+ is_file( $this->tempDir .
'backend/new_collection/deep_collection/deep_test.txt' ),
'Expected created deep file in collection.'
);
Modified:
trunk/Webdav/tests/data/responses/file/testPropFindAllPropsOnCollection.ser
==============================================================================
Binary files - no diff available.
Modified:
trunk/Webdav/tests/data/responses/file/testPropFindAllPropsOnResource.ser
==============================================================================
Binary files - no diff available.
Modified:
trunk/Webdav/tests/data/responses/file/testPropFindNamesOnCollectionDepthInfinite.ser
==============================================================================
Binary files - no diff available.
Modified:
trunk/Webdav/tests/data/responses/file/testPropFindNamesOnCollectionDepthOne.ser
==============================================================================
Binary files - no diff available.
Modified: trunk/Webdav/tests/data/responses/file/testPropFindOnCollection.ser
==============================================================================
Binary files - no diff available.
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components