Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
cd3cdf02
Commit
cd3cdf02
authored
Dec 22, 2016
by
Sergio Bertolin
Browse files
Changed data directory for work one
parent
08fa0138
Changes
2
Hide whitespace changes
Inline
Side-by-side
build/integration/features/bootstrap/BasicStructure.php
View file @
cd3cdf02
...
...
@@ -314,7 +314,7 @@ trait BasicStructure {
}
public
function
createFileSpecificSize
(
$name
,
$size
){
$file
=
fopen
(
"
data
/"
.
"
$name
"
,
'w'
);
$file
=
fopen
(
"
work
/"
.
"
$name
"
,
'w'
);
fseek
(
$file
,
$size
-
1
,
SEEK_CUR
);
fwrite
(
$file
,
'a'
);
// write a dummy char at SIZE position
fclose
(
$file
);
...
...
build/integration/features/bootstrap/WebDav.php
View file @
cd3cdf02
...
...
@@ -464,9 +464,9 @@ trait WebDav {
public
function
userAddsAFileTo
(
$user
,
$bytes
,
$destination
){
$filename
=
"filespecificSize.txt"
;
$this
->
createFileSpecificSize
(
$filename
,
$bytes
);
PHPUnit_Framework_Assert
::
assertEquals
(
1
,
file_exists
(
"
data
/
$filename
"
));
$this
->
userUploadsAFileTo
(
$user
,
"
data
/
$filename
"
,
$destination
);
$this
->
removeFile
(
"
data
/"
,
$filename
);
PHPUnit_Framework_Assert
::
assertEquals
(
1
,
file_exists
(
"
work
/
$filename
"
));
$this
->
userUploadsAFileTo
(
$user
,
"
work
/
$filename
"
,
$destination
);
$this
->
removeFile
(
"
work
/"
,
$filename
);
$userHome
=
$this
->
getUserHome
(
$user
);
PHPUnit_Framework_Assert
::
assertEquals
(
1
,
file_exists
(
$userHome
.
"/files
$destination
"
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment