2021-03-03 15:04:42 +01:00
< ? php
declare ( strict_types = 1 );
namespace api\tests\functional\authlibInjector ;
use api\tests\FunctionalTester ;
class IndexCest {
2024-12-02 15:10:55 +05:00
public function index ( FunctionalTester $I ) : void {
2021-03-03 15:04:42 +01:00
$I -> sendGet ( '/api/authlib-injector' );
$I -> seeResponseCodeIs ( 200 );
$I -> canSeeResponseContainsJson ([
'meta' => [
'serverName' => 'Ely.by' ,
'implementationName' => 'Account Ely.by adapter for the authlib-injector library' ,
'implementationVersion' => '1.0.0' ,
'feature.no_mojang_namespace' => true ,
2024-12-24 12:25:39 +01:00
'feature.enable_profile_key' => true ,
2021-03-03 15:04:42 +01:00
'links' => [
'homepage' => 'https://ely.by' ,
'register' => 'https://account.ely.by/register' ,
],
],
'skinDomains' => [ 'ely.by' , '.ely.by' ],
'signaturePublickey' => " -----BEGIN PUBLIC KEY----- \n MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBANbUpVCZkMKpfvYZ08W3lumdAaYxLBnm \n UDlzHBQH3DpYef5WCO32TDU6feIJ58A0lAywgtZ4wwi2dGHOz/1hAvcCAwEAAQ== \n -----END PUBLIC KEY----- " ,
]);
$I -> canSeeHttpHeader ( 'X-Accel-Expires' );
}
}