Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
80646593
Commit
80646593
authored
Jun 19, 2017
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix phpunit
parent
64d8b97a
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
test/phpunit/AdminLibTest.php
+10
-4
10 additions, 4 deletions
test/phpunit/AdminLibTest.php
test/phpunit/LangTest.php
+1
-1
1 addition, 1 deletion
test/phpunit/LangTest.php
test/phpunit/RestAPIUserTest.php
+10
-8
10 additions, 8 deletions
test/phpunit/RestAPIUserTest.php
with
21 additions
and
13 deletions
test/phpunit/AdminLibTest.php
+
10
−
4
View file @
80646593
...
@@ -157,6 +157,12 @@ class AdminLibTest extends PHPUnit_Framework_TestCase
...
@@ -157,6 +157,12 @@ class AdminLibTest extends PHPUnit_Framework_TestCase
$moduledescriptor
=
new
modExpenseReport
(
$db
);
$moduledescriptor
=
new
modExpenseReport
(
$db
);
$moduledescriptor
->
init
();
$moduledescriptor
->
init
();
$conf
->
setValues
(
$db
);
$conf
->
setValues
(
$db
);
require_once
dirname
(
__FILE__
)
.
'/../../htdocs/core/modules/modApi.class.php'
;
print
"Enable module modAPI"
;
$moduledescriptor
=
new
modApi
(
$db
);
$moduledescriptor
->
init
();
$conf
->
setValues
(
$db
);
}
}
}
}
This diff is collapsed.
Click to expand it.
test/phpunit/LangTest.php
+
1
−
1
View file @
80646593
...
@@ -129,7 +129,7 @@ class LangTest extends PHPUnit_Framework_TestCase
...
@@ -129,7 +129,7 @@ class LangTest extends PHPUnit_Framework_TestCase
}
}
/**
/**
* test
B
an
k
* test
L
an
g
*
*
* @return string
* @return string
*/
*/
...
...
This diff is collapsed.
Click to expand it.
test/phpunit/RestAPIUserTest.php
+
10
−
8
View file @
80646593
...
@@ -71,6 +71,8 @@ class RestAPIUserTest extends PHPUnit_Framework_TestCase
...
@@ -71,6 +71,8 @@ class RestAPIUserTest extends PHPUnit_Framework_TestCase
$this
->
savlangs
=
$langs
;
$this
->
savlangs
=
$langs
;
$this
->
savdb
=
$db
;
$this
->
savdb
=
$db
;
if
(
empty
(
$conf
->
api
->
enabled
))
{
print
__METHOD__
.
" module api must be enabled.
\n
"
;
die
();
}
print
__METHOD__
.
" db->type="
.
$db
->
type
.
" user->id="
.
$user
->
id
;
print
__METHOD__
.
" db->type="
.
$db
->
type
.
" user->id="
.
$user
->
id
;
//print " - db ".$db->db;
//print " - db ".$db->db;
print
"
\n
"
;
print
"
\n
"
;
...
...
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