From 86397a66412ed2051f0386741b066e56ce7cd0c3 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Sun, 25 Nov 2018 14:32:14 +0800 Subject: [PATCH] Fix risky tests --- tests/AuthControllerTest.php | 7 ------- tests/SetupControllerTest.php | 4 ++-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/tests/AuthControllerTest.php b/tests/AuthControllerTest.php index 519dd6c5..3846d02d 100644 --- a/tests/AuthControllerTest.php +++ b/tests/AuthControllerTest.php @@ -611,11 +611,4 @@ class AuthControllerTest extends TestCase $this->get($url)->assertViewIs('auth.verify'); $this->assertEquals(1, User::find($user->uid)->verified); } - - public function testCaptcha() - { - $this->get('/auth/captcha') - ->assertSuccessful() - ->assertHeader('Content-Type', 'image/png'); - } } diff --git a/tests/SetupControllerTest.php b/tests/SetupControllerTest.php index 82d2ccb9..4d3db529 100644 --- a/tests/SetupControllerTest.php +++ b/tests/SetupControllerTest.php @@ -51,9 +51,9 @@ class SetupControllerTest extends TestCase public function testDatabase() { $fake = [ - 'type' => 'mysql', + 'type' => env('DB_CONNECTION'), 'host' => env('DB_HOST'), - 'port' => '3306', + 'port' => env('DB_PORT'), 'db' => env('DB_DATABASE'), 'username' => env('DB_USERNAME'), 'password' => env('DB_PASSWORD'),