Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
fc270528
Commit
fc270528
authored
11 years ago
by
Jörn Friedrich Dreyer
Browse files
Options
Downloads
Patches
Plain Diff
shorten table identifiers in tests
parent
b237d037
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
tests/data/db_structure.xml
+2
-2
2 additions, 2 deletions
tests/data/db_structure.xml
tests/data/db_structure2.xml
+1
-1
1 addition, 1 deletion
tests/data/db_structure2.xml
tests/lib/db.php
+2
-2
2 additions, 2 deletions
tests/lib/db.php
tests/lib/dbschema.php
+2
-2
2 additions, 2 deletions
tests/lib/dbschema.php
with
7 additions
and
7 deletions
tests/data/db_structure.xml
+
2
−
2
View file @
fc270528
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<table>
<table>
<name>
*dbprefix*c
o
nt
a
cts_addr
essboo
ks
</name>
<name>
*dbprefix*cntcts_addr
sb
ks
</name>
<declaration>
<declaration>
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
<table>
<table>
<name>
*dbprefix*c
o
nt
a
cts_cards
</name>
<name>
*dbprefix*cntcts_cards
</name>
<declaration>
<declaration>
...
...
This diff is collapsed.
Click to expand it.
tests/data/db_structure2.xml
+
1
−
1
View file @
fc270528
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<table>
<table>
<name>
*dbprefix*c
o
nt
a
cts_addr
essboo
ks
</name>
<name>
*dbprefix*cntcts_addr
sb
ks
</name>
<declaration>
<declaration>
...
...
This diff is collapsed.
Click to expand it.
tests/lib/db.php
+
2
−
2
View file @
fc270528
...
@@ -22,8 +22,8 @@ class Test_DB extends PHPUnit_Framework_TestCase {
...
@@ -22,8 +22,8 @@ class Test_DB extends PHPUnit_Framework_TestCase {
OC_DB
::
createDbFromStructure
(
self
::
$schema_file
);
OC_DB
::
createDbFromStructure
(
self
::
$schema_file
);
$this
->
test_prefix
=
$r
;
$this
->
test_prefix
=
$r
;
$this
->
table1
=
$this
->
test_prefix
.
'c
o
nt
a
cts_addr
essboo
ks'
;
$this
->
table1
=
$this
->
test_prefix
.
'cntcts_addr
sb
ks'
;
$this
->
table2
=
$this
->
test_prefix
.
'c
o
nt
a
cts_cards'
;
$this
->
table2
=
$this
->
test_prefix
.
'cntcts_cards'
;
$this
->
table3
=
$this
->
test_prefix
.
'vcategory'
;
$this
->
table3
=
$this
->
test_prefix
.
'vcategory'
;
}
}
...
...
This diff is collapsed.
Click to expand it.
tests/lib/dbschema.php
+
2
−
2
View file @
fc270528
...
@@ -26,8 +26,8 @@ class Test_DBSchema extends PHPUnit_Framework_TestCase {
...
@@ -26,8 +26,8 @@ class Test_DBSchema extends PHPUnit_Framework_TestCase {
file_put_contents
(
self
::
$schema_file2
,
$content
);
file_put_contents
(
self
::
$schema_file2
,
$content
);
$this
->
test_prefix
=
$r
;
$this
->
test_prefix
=
$r
;
$this
->
table1
=
$this
->
test_prefix
.
'c
o
nt
a
cts_addr
essboo
ks'
;
$this
->
table1
=
$this
->
test_prefix
.
'cntcts_addr
sb
ks'
;
$this
->
table2
=
$this
->
test_prefix
.
'c
o
nt
a
cts_cards'
;
$this
->
table2
=
$this
->
test_prefix
.
'cntcts_cards'
;
}
}
public
function
tearDown
()
{
public
function
tearDown
()
{
...
...
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