Skip to content

Commit

Permalink
Fix error - Creation of dynamic property is deprecated (#997)
Browse files Browse the repository at this point in the history
  • Loading branch information
shishir-intelli authored Nov 30, 2023
1 parent ec24f1a commit 25097ec
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,18 @@ abstract class ApigeeEdgeTeamsFunctionalTestBase extends ApigeeEdgeFunctionalTes
'apigee_edge_teams',
];

/**
* Test token data.
*
* @var array
*/
private $testTokenData = [];

/**
* Stores pre-configured token storage service for testing.
*/
protected function storeToken() {
// Storing the token for Appigeex Hybrid Org.
// Storing the token for Apigeex Hybrid Org.
$this->testTokenData = [
'access_token' => mb_strtolower($this->randomMachineName(32)),
'token_type' => 'bearer',
Expand Down
9 changes: 8 additions & 1 deletion tests/src/Kernel/ApigeeX/ApigeeEdgeKernelTestBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
*/
abstract class ApigeeEdgeKernelTestBase extends KernelTestBase {

/**
* Test token data.
*
* @var array
*/
private $testTokenData = [];

/**
* {@inheritdoc}
*/
Expand All @@ -44,7 +51,7 @@ protected function setUp(): void {
* Stores pre-configured token storage service for testing.
*/
protected function storeToken() {
// Storing the token for Appigeex Hybrid Org.
// Storing the token for Apigeex Hybrid Org.
$this->testTokenData = [
'access_token' => mb_strtolower($this->randomMachineName(32)),
'token_type' => 'bearer',
Expand Down

0 comments on commit 25097ec

Please sign in to comment.