Completed
Pull Request — release-2.1 (#6097)
by Mathias
15:04
created
Tests/installTest.php 4 patches
Indentation   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -20,56 +20,56 @@
 block discarded – undo
20 20
 
21 21
 final class InstallTest extends TestCase
22 22
 {
23
-    public function testWrite() {
24
-        load_lang_file();
25
-        $var = CheckFilesWritable();
26
-        $this->assertEquals(true,$var);
27
-    }
23
+	public function testWrite() {
24
+		load_lang_file();
25
+		$var = CheckFilesWritable();
26
+		$this->assertEquals(true,$var);
27
+	}
28 28
 
29
-    public function testDBSettings() {
30
-        $_POST['db_type'] = 'postgresql';
31
-        $_POST['db_prefix'] = 'smf_';
32
-        $_POST['db_name'] = 'postgres';
33
-        $_POST['db_user'] = 'postgres';
34
-        $_POST['db_passwd'] = '';
35
-        $_POST['db_server'] = 'localhost';
36
-        $_POST['db_port'] = '5432';
29
+	public function testDBSettings() {
30
+		$_POST['db_type'] = 'postgresql';
31
+		$_POST['db_prefix'] = 'smf_';
32
+		$_POST['db_name'] = 'postgres';
33
+		$_POST['db_user'] = 'postgres';
34
+		$_POST['db_passwd'] = '';
35
+		$_POST['db_server'] = 'localhost';
36
+		$_POST['db_port'] = '5432';
37 37
 
38
-        // updateSettingsFile got different way to detect setting dir...
39
-        $GLOBALS['boarddir'] = getcwd();
38
+		// updateSettingsFile got different way to detect setting dir...
39
+		$GLOBALS['boarddir'] = getcwd();
40 40
 
41
-        load_lang_file();
42
-        $var = DatabaseSettings();
43
-        $this->assertEquals(true,$var);
44
-    }
41
+		load_lang_file();
42
+		$var = DatabaseSettings();
43
+		$this->assertEquals(true,$var);
44
+	}
45 45
 
46
-    public function testForumSettings() {
47
-        $_SERVER['SERVER_NAME'] = 'localhost';
48
-        $_POST['boardurl'] = 'http://localhost';
49
-        $_POST['mbname'] = 'My PHPUnit Community';
50
-        load_lang_file();
51
-        $var = ForumSettings();
52
-        $this->assertEquals(true,$var);
53
-    }
46
+	public function testForumSettings() {
47
+		$_SERVER['SERVER_NAME'] = 'localhost';
48
+		$_POST['boardurl'] = 'http://localhost';
49
+		$_POST['mbname'] = 'My PHPUnit Community';
50
+		load_lang_file();
51
+		$var = ForumSettings();
52
+		$this->assertEquals(true,$var);
53
+	}
54 54
 
55
-    public function testDatabasePopulation() {
56
-        load_lang_file();
57
-        $var = DatabasePopulation();
58
-        $this->assertEquals(true,$var);
59
-    }
55
+	public function testDatabasePopulation() {
56
+		load_lang_file();
57
+		$var = DatabasePopulation();
58
+		$this->assertEquals(true,$var);
59
+	}
60 60
 
61
-    public function testAdminAccount() {
62
-        $_POST['username'] = 'Admin';
63
-        $_POST['email'] = '[email protected]';
64
-        $_POST['password1'] = 'admin';    
65
-        $_POST['contbutt'] = '1234';
61
+	public function testAdminAccount() {
62
+		$_POST['username'] = 'Admin';
63
+		$_POST['email'] = '[email protected]';
64
+		$_POST['password1'] = 'admin';    
65
+		$_POST['contbutt'] = '1234';
66 66
 
67
-        $_POST['password2'] = $_POST['password1'];
68
-        $_POST['server_email'] = $_POST['email'];
69
-        load_lang_file();
70
-        $var = AdminAccount();
71
-        $this->assertEquals(true,$var);
72
-    }
67
+		$_POST['password2'] = $_POST['password1'];
68
+		$_POST['server_email'] = $_POST['email'];
69
+		load_lang_file();
70
+		$var = AdminAccount();
71
+		$this->assertEquals(true,$var);
72
+	}
73 73
 }
74 74
 
75 75
 ?>
76 76
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
  * @version 2.1 RC2
15 15
  */
16 16
 
17
-define('SMFPHPUNIT',TRUE);
17
+define('SMFPHPUNIT', TRUE);
18 18
 use PHPUnit\Framework\TestCase;
19 19
 require_once('./install.php');
20 20
 
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     public function testWrite() {
24 24
         load_lang_file();
25 25
         $var = CheckFilesWritable();
26
-        $this->assertEquals(true,$var);
26
+        $this->assertEquals(true, $var);
27 27
     }
28 28
 
29 29
     public function testDBSettings() {
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
         load_lang_file();
42 42
         $var = DatabaseSettings();
43
-        $this->assertEquals(true,$var);
43
+        $this->assertEquals(true, $var);
44 44
     }
45 45
 
46 46
     public function testForumSettings() {
@@ -49,13 +49,13 @@  discard block
 block discarded – undo
49 49
         $_POST['mbname'] = 'My PHPUnit Community';
50 50
         load_lang_file();
51 51
         $var = ForumSettings();
52
-        $this->assertEquals(true,$var);
52
+        $this->assertEquals(true, $var);
53 53
     }
54 54
 
55 55
     public function testDatabasePopulation() {
56 56
         load_lang_file();
57 57
         $var = DatabasePopulation();
58
-        $this->assertEquals(true,$var);
58
+        $this->assertEquals(true, $var);
59 59
     }
60 60
 
61 61
     public function testAdminAccount() {
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         $_POST['server_email'] = $_POST['email'];
69 69
         load_lang_file();
70 70
         $var = AdminAccount();
71
-        $this->assertEquals(true,$var);
71
+        $this->assertEquals(true, $var);
72 72
     }
73 73
 }
74 74
 
Please login to merge, or discard this patch.
Braces   +10 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,13 +20,15 @@  discard block
 block discarded – undo
20 20
 
21 21
 final class InstallTest extends TestCase
22 22
 {
23
-    public function testWrite() {
23
+    public function testWrite()
24
+    {
24 25
         load_lang_file();
25 26
         $var = CheckFilesWritable();
26 27
         $this->assertEquals(true,$var);
27 28
     }
28 29
 
29
-    public function testDBSettings() {
30
+    public function testDBSettings()
31
+    {
30 32
         $_POST['db_type'] = 'postgresql';
31 33
         $_POST['db_prefix'] = 'smf_';
32 34
         $_POST['db_name'] = 'postgres';
@@ -43,7 +45,8 @@  discard block
 block discarded – undo
43 45
         $this->assertEquals(true,$var);
44 46
     }
45 47
 
46
-    public function testForumSettings() {
48
+    public function testForumSettings()
49
+    {
47 50
         $_SERVER['SERVER_NAME'] = 'localhost';
48 51
         $_POST['boardurl'] = 'http://localhost';
49 52
         $_POST['mbname'] = 'My PHPUnit Community';
@@ -52,13 +55,15 @@  discard block
 block discarded – undo
52 55
         $this->assertEquals(true,$var);
53 56
     }
54 57
 
55
-    public function testDatabasePopulation() {
58
+    public function testDatabasePopulation()
59
+    {
56 60
         load_lang_file();
57 61
         $var = DatabasePopulation();
58 62
         $this->assertEquals(true,$var);
59 63
     }
60 64
 
61
-    public function testAdminAccount() {
65
+    public function testAdminAccount()
66
+    {
62 67
         $_POST['username'] = 'Admin';
63 68
         $_POST['email'] = '[email protected]';
64 69
         $_POST['password1'] = 'admin';    
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
  * @version 2.1 RC2
15 15
  */
16 16
 
17
-define('SMFPHPUNIT',TRUE);
17
+define('SMFPHPUNIT',true);
18 18
 use PHPUnit\Framework\TestCase;
19 19
 require_once('./install.php');
20 20
 
Please login to merge, or discard this patch.