[Pkg-owncloud-commits] [php-sabredav] 28/33: Fixed some tests to use proper tempdir
David Prévot
taffit at moszumanska.debian.org
Sat Nov 30 15:43:56 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag version-1.0.10
in repository php-sabredav.
commit dfc72f7753abddec65668dd662ad79416dcb8c3f
Author: Evert Pot <evert at rooftopsolutions.nl>
Date: Fri Mar 19 13:53:06 2010 +0900
Fixed some tests to use proper tempdir
---
build.xml | 4 ++--
tests/Sabre/DAV/Locks/PluginTest.php | 4 ++--
tests/Sabre/DAV/ServerCopyMoveTest.php | 2 +-
tests/Sabre/DAV/TemporaryFileFilterTest.php | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/build.xml b/build.xml
index d5d854e..1ad04ff 100644
--- a/build.xml
+++ b/build.xml
@@ -23,8 +23,8 @@
<echo>Pushing to pearfarm</echo>
<exec command="pearfarm push Sabre_DAV-${sabredav.version}_PEARFARM.tgz" checkreturn="true" passthru="1" />
<echo>Uploading to Google Code</echo>
- <propertyprompt propertyName="googlecode.username" defaultValue="evertpot" promptText="Enter your googlecode username" />
- <propertyprompt propertyName="googlecode.password" promptText="Enter your googlecode password" />
+ <propertyprompt propertyName="googlecode.username" defaultValue="evertpot" promptText="Enter your googlecode username" useExistingValue="true" />
+ <propertyprompt propertyName="googlecode.password" promptText="Enter your googlecode password" useExistingValue="true" />
<exec command="bin/googlecode_upload.py -s 'SabreDAV ${sabredav.version}' -p sabredav --labels=${sabredav.ucstability} -u '${googlecode.username}' -w '${googlecode.password}' Sabre_DAV-${sabredav.version}.tgz" checkreturn="true" passthru="1" />
</target>
diff --git a/tests/Sabre/DAV/Locks/PluginTest.php b/tests/Sabre/DAV/Locks/PluginTest.php
index e5f6acb..e6fe578 100644
--- a/tests/Sabre/DAV/Locks/PluginTest.php
+++ b/tests/Sabre/DAV/Locks/PluginTest.php
@@ -7,8 +7,8 @@ class Sabre_DAV_Locks_PluginTest extends Sabre_DAV_AbstractServer {
function setUp() {
parent::setUp();
- mkdir('temp/locksdir');
- $locksBackend = new Sabre_DAV_Locks_Backend_FS('temp/locksdir');
+ mkdir(SABRE_TEMPDIR . '/locksdir');
+ $locksBackend = new Sabre_DAV_Locks_Backend_FS(SABRE_TEMPDIR . '/locksdir');
$locksPlugin = new Sabre_DAV_Locks_Plugin($locksBackend);
$this->server->addPlugin($locksPlugin);
$this->locksPlugin = $locksPlugin;
diff --git a/tests/Sabre/DAV/ServerCopyMoveTest.php b/tests/Sabre/DAV/ServerCopyMoveTest.php
index 3ad7b81..1c60b8b 100644
--- a/tests/Sabre/DAV/ServerCopyMoveTest.php
+++ b/tests/Sabre/DAV/ServerCopyMoveTest.php
@@ -7,7 +7,7 @@ class Sabre_DAV_ServerCopyMoveTest extends PHPUnit_Framework_TestCase {
private $response;
private $request;
private $server;
- private $tempDir = 'temp/';
+ private $tempDir = SABRE_TEMPDIR;
function setUp() {
diff --git a/tests/Sabre/DAV/TemporaryFileFilterTest.php b/tests/Sabre/DAV/TemporaryFileFilterTest.php
index 5794a21..826cf3b 100644
--- a/tests/Sabre/DAV/TemporaryFileFilterTest.php
+++ b/tests/Sabre/DAV/TemporaryFileFilterTest.php
@@ -5,7 +5,7 @@ class Sabre_DAV_TemporaryFileFilterTest extends Sabre_DAV_AbstractServer {
function setUp() {
parent::setUp();
- $plugin = new Sabre_DAV_TemporaryFileFilterPlugin('temp/tff');
+ $plugin = new Sabre_DAV_TemporaryFileFilterPlugin(SABRE_TEMPDIR . '/tff');
$this->server->addPlugin($plugin);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git
More information about the Pkg-owncloud-commits
mailing list