Skip to content

Commit

Permalink
Fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
lennyrouanet committed Oct 5, 2022
1 parent 77d0541 commit 0fe0db4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions component/Fixture/DataStructure/AccessToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 0fe0db4

Please sign in to comment.