Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/blueversion/wp-content/plugins/really-simple-ssl/tests/ |
Upload File : |
<?php
class RssslUsersCanRegisterTest extends WP_UnitTestCase {
/**
* Set up the test environment.
*
* @return void
*/
public function setUp(): void {
parent::setUp();
// Include the file containing the functions to be tested.
require_once __DIR__ . '/../security/wordpress/user-registration.php';
}
/**
* Test if the users_can_register option is filtered correctly to disable user registration.
*
* @return void
*/
public function test_rsssl_users_can_register_filter() {
$value = true; // Initial value of the users_can_register option
$option = 'users_can_register'; // Option name
$result = rsssl_users_can_register($value, $option);
$this->assertFalse($result);
}
}