Merge remote-tracking branch 'refs/remotes/origin/support/3.1' into support/3.2

This commit is contained in:
jf-cbd
2024-04-24 12:01:40 +02:00

View File

@@ -15,18 +15,20 @@ class TokenValidationTest extends ItopDataTestCase
*/
public function createSetupTokenFile(string $sSetupToken): string
{
$sSetupTokenFile = APPROOT.'data/.setup';
$sSetupTokenFile = APPROOT . 'data/.setup';
file_put_contents($sSetupTokenFile, $sSetupToken);
return $sSetupTokenFile;
}protected function setUp(): void
{
parent::setUp();
$this->RequireOnceItopFile('datamodels/2.x/itop-hub-connector/TokenValidation.php');
}
/**
* @group itop-community
* @return void
*/
public function testLaunch()
{
$this->RequireOnceItopFile('datamodels/2.x/itop-hub-connector/TokenValidation.php');
$oTokenValidation = new TokenValidation();
$sSetupToken = bin2hex(random_bytes(12));