mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/15851] Skip unreadable file tests on windows
PHPBB-15851
This commit is contained in:
parent
feb7d6f34e
commit
1157c41410
1 changed files with 10 additions and 0 deletions
|
@ -142,6 +142,11 @@ class phpbb_update_get_updates_test extends phpbb_test_case
|
||||||
|
|
||||||
public function test_validate_file_not_accessible()
|
public function test_validate_file_not_accessible()
|
||||||
{
|
{
|
||||||
|
if (strtolower(substr(PHP_OS, 0, 3)) === 'win')
|
||||||
|
{
|
||||||
|
$this->markTestSkipped('Unable to test unreadable files on Windows');
|
||||||
|
}
|
||||||
|
|
||||||
$keypair = sodium_crypto_sign_keypair();
|
$keypair = sodium_crypto_sign_keypair();
|
||||||
|
|
||||||
$public_key = base64_encode(sodium_crypto_sign_publickey($keypair));
|
$public_key = base64_encode(sodium_crypto_sign_publickey($keypair));
|
||||||
|
@ -160,6 +165,11 @@ class phpbb_update_get_updates_test extends phpbb_test_case
|
||||||
|
|
||||||
public function test_validate_sig_not_accessible()
|
public function test_validate_sig_not_accessible()
|
||||||
{
|
{
|
||||||
|
if (strtolower(substr(PHP_OS, 0, 3)) === 'win')
|
||||||
|
{
|
||||||
|
$this->markTestSkipped('Unable to test unreadable files on Windows');
|
||||||
|
}
|
||||||
|
|
||||||
$keypair = sodium_crypto_sign_keypair();
|
$keypair = sodium_crypto_sign_keypair();
|
||||||
|
|
||||||
$secret_key = sodium_crypto_sign_secretkey($keypair);
|
$secret_key = sodium_crypto_sign_secretkey($keypair);
|
||||||
|
|
Loading…
Add table
Reference in a new issue