Skip to content

Commit 07aee02

Browse files
committed
Add SSL Cipher for MySQL
1 parent d75bd30 commit 07aee02

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/DatabaseTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,13 @@ public function testConnectionWithSSL() : void
164164
protected function cipherStatus(Database $database) : void
165165
{
166166
$status = $database->query("SHOW STATUS LIKE 'ssl_cipher'")->fetchArray();
167+
if (\getenv('DB_IMAGE') === 'mysql') {
168+
self::assertSame([
169+
'Variable_name' => 'Ssl_cipher',
170+
'Value' => 'TLS_AES_128_GCM_SHA256',
171+
], $status);
172+
return;
173+
}
167174
self::assertSame([
168175
'Variable_name' => 'Ssl_cipher',
169176
'Value' => 'TLS_AES_256_GCM_SHA384',

0 commit comments

Comments
 (0)