From 0fe0db4a0a7945334254208e07e3bca97a471714 Mon Sep 17 00:00:00 2001 From: Lenny ROUANET Date: Wed, 5 Oct 2022 13:08:33 +0200 Subject: [PATCH] Fixture --- component/Fixture/DataStructure/AccessToken.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/component/Fixture/DataStructure/AccessToken.php b/component/Fixture/DataStructure/AccessToken.php index 6a03280..3b6cb9b 100644 --- a/component/Fixture/DataStructure/AccessToken.php +++ b/component/Fixture/DataStructure/AccessToken.php @@ -25,6 +25,17 @@ public static function get(): EntityAccessToken ); } + public static function getWithoutUser(): EntityAccessToken + { + return EntityAccessToken::generate( + FixtureSslKey::get(), + new AuthMethod(AuthMethod::API_KEY), + FixtureApplication::get(), + null, + 86400 + ); + } + public static function getExpired(): EntityAccessToken { return EntityAccessToken::generate(