From 3bfea90f5d6f15d2cf24da67f2b7c8815fae5ded Mon Sep 17 00:00:00 2001 From: Josh Cunningham Date: Thu, 1 Aug 2019 09:18:18 -0700 Subject: [PATCH] Tests for new functionality --- lib/WP_Auth0_LoginManager.php | 2 +- tests/testLoginManagerInitAuth0.php | 45 +++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/lib/WP_Auth0_LoginManager.php b/lib/WP_Auth0_LoginManager.php index 60c70c36..f228f1b7 100755 --- a/lib/WP_Auth0_LoginManager.php +++ b/lib/WP_Auth0_LoginManager.php @@ -625,7 +625,7 @@ public static function build_authorize_url( array $params = array() ) { } /** - * Get a value from query_vars or $_REQUEST global. + * Get a value from query_vars or request global. * * @param string $key - query var key to return. * diff --git a/tests/testLoginManagerInitAuth0.php b/tests/testLoginManagerInitAuth0.php index d8bc6536..b1746ede 100644 --- a/tests/testLoginManagerInitAuth0.php +++ b/tests/testLoginManagerInitAuth0.php @@ -110,6 +110,51 @@ public function testThatErrorInUrlStopsCallback() { $this->assertContains( '