@@ -20,56 +20,56 @@ |
||
| 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 |