Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
9984c2a5
Commit
9984c2a5
authored
12 years ago
by
Bart Visscher
Browse files
Options
Downloads
Patches
Plain Diff
Spelling fixes in XCache files
parent
20aee83d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/cache/xcache.php
+2
-3
2 additions, 3 deletions
lib/cache/xcache.php
tests/lib/cache.php
+3
-3
3 additions, 3 deletions
tests/lib/cache.php
with
5 additions
and
6 deletions
lib/cache/xcache.php
+
2
−
3
View file @
9984c2a5
...
@@ -6,10 +6,9 @@
...
@@ -6,10 +6,9 @@
* See the COPYING-README file.
* See the COPYING-README file.
*/
*/
class
OC_Cache_XCache
{
class
OC_Cache_XCache
{
/**
/**
* entries in XCache gets namespaced to prevent collisions between owncloud instaces and users
* entries in XCache gets namespaced to prevent collisions between owncloud insta
n
ces and users
*/
*/
protected
function
getNameSpace
()
{
protected
function
getNameSpace
()
{
return
OC_Util
::
getInstanceId
()
.
'/'
.
OC_User
::
getUser
()
.
'/'
;
return
OC_Util
::
getInstanceId
()
.
'/'
.
OC_User
::
getUser
()
.
'/'
;
...
...
This diff is collapsed.
Click to expand it.
tests/lib/cache.php
+
3
−
3
View file @
9984c2a5
...
@@ -28,7 +28,7 @@ abstract class Test_Cache extends UnitTestCase {
...
@@ -28,7 +28,7 @@ abstract class Test_Cache extends UnitTestCase {
$value
=
'ipsum lorum'
;
$value
=
'ipsum lorum'
;
$this
->
instance
->
set
(
'value1'
,
$value
);
$this
->
instance
->
set
(
'value1'
,
$value
);
$received
=
$this
->
instance
->
get
(
'value1'
);
$received
=
$this
->
instance
->
get
(
'value1'
);
$this
->
assertEqual
(
$value
,
$received
,
'Value not overwritten by sec
c
ond set'
);
$this
->
assertEqual
(
$value
,
$received
,
'Value not overwritten by second set'
);
$value2
=
'foobar'
;
$value2
=
'foobar'
;
$this
->
instance
->
set
(
'value2'
,
$value2
);
$this
->
instance
->
set
(
'value2'
,
$value2
);
...
@@ -36,7 +36,7 @@ abstract class Test_Cache extends UnitTestCase {
...
@@ -36,7 +36,7 @@ abstract class Test_Cache extends UnitTestCase {
$this
->
assertTrue
(
$this
->
instance
->
hasKey
(
'value1'
));
$this
->
assertTrue
(
$this
->
instance
->
hasKey
(
'value1'
));
$this
->
assertTrue
(
$this
->
instance
->
hasKey
(
'value2'
));
$this
->
assertTrue
(
$this
->
instance
->
hasKey
(
'value2'
));
$this
->
assertEqual
(
$value
,
$received
,
'Value changed while setting other variable'
);
$this
->
assertEqual
(
$value
,
$received
,
'Value changed while setting other variable'
);
$this
->
assertEqual
(
$value2
,
$received2
,
'Sec
c
ond value not equal to original'
);
$this
->
assertEqual
(
$value2
,
$received2
,
'Second value not equal to original'
);
$this
->
assertFalse
(
$this
->
instance
->
hasKey
(
'not_set'
));
$this
->
assertFalse
(
$this
->
instance
->
hasKey
(
'not_set'
));
$this
->
assertNull
(
$this
->
instance
->
get
(
'not_set'
),
'Unset value not equal to null'
);
$this
->
assertNull
(
$this
->
instance
->
get
(
'not_set'
),
'Unset value not equal to null'
);
...
@@ -53,4 +53,4 @@ abstract class Test_Cache extends UnitTestCase {
...
@@ -53,4 +53,4 @@ abstract class Test_Cache extends UnitTestCase {
$this
->
assertTrue
(
$this
->
instance
->
hasKey
(
'value2'
));
$this
->
assertTrue
(
$this
->
instance
->
hasKey
(
'value2'
));
$this
->
assertEqual
(
$value2
,
$this
->
instance
->
get
(
'value2'
));
$this
->
assertEqual
(
$value2
,
$this
->
instance
->
get
(
'value2'
));
}
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment