Skip to content

Commit

Permalink
Merge pull request #238 from creative-commoners/pulls/3.2/remove-self
Browse files Browse the repository at this point in the history
ENH Use class name instead of self
  • Loading branch information
GuySartorelli authored Jun 17, 2024
2 parents 578fb67 + be78f89 commit fc7a84e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/behat/src/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class FeatureContext extends SilverStripeContext
*/
public function iSaveTheLinkToShareDraftContentLocalStorage()
{
$key = self::KEY;
$key = FeatureContext::KEY;
$js = <<<JS
window.localStorage.setItem('{$key}', document.querySelector('.share-draft-content__link').value);
JS;
Expand All @@ -25,7 +25,7 @@ public function iSaveTheLinkToShareDraftContentLocalStorage()
*/
public function iFollowTheLinkInShareDraftContentLocalStorage()
{
$key = self::KEY;
$key = FeatureContext::KEY;
$js = <<<JS
window.location = window.localStorage.getItem('{$key}');
JS;
Expand All @@ -37,7 +37,7 @@ public function iFollowTheLinkInShareDraftContentLocalStorage()
*/
public function iClearTheLinkFromShareDraftContentLocalStorage()
{
$key = self::KEY;
$key = FeatureContext::KEY;
$js = <<<JS
window.localStorage.removeItem('{$key}');
JS;
Expand Down

0 comments on commit fc7a84e

Please sign in to comment.