File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ class Helper
32
32
'savedir ' => null ,
33
33
'verbose ' => null ,
34
34
'versiontable ' => null ,
35
- 'aliastable ' => null ,
36
- 'aliasprefix ' => null ,
35
+ 'aliastable ' => false ,
36
+ 'aliasprefix ' => false ,
37
37
'versiontable-engine ' => 'MyISAM ' ,
38
38
'forceyes ' => false ,
39
39
'noninteractive ' => false ,
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ class HelperTest extends PHPUnit_Framework_TestCase
4
+ {
5
+ public function testRequiredParamsShouldBeEnough ()
6
+ {
7
+ $ config = array ();
8
+ $ config ['host ' ] = 'host ' ;
9
+ $ config ['user ' ] = 'user ' ;
10
+ $ config ['password ' ] = 'password ' ;
11
+ $ config ['db ' ] = 'db ' ;
12
+ $ config ['savedir ' ] = 'savedir ' ;
13
+ $ config ['versiontable ' ] = 'versiontable ' ;
14
+ $ config ['verbose ' ] = 'verbose ' ;
15
+ Helper::setConfig ($ config );
16
+ $ this ->assertTrue ( Helper::checkConfigEnough ());
17
+ }
18
+ }
You can’t perform that action at this time.
0 commit comments