assertArrayNotHasKey( 'action', $_GET ); // Should pass through initially because WP-Auth0 is not configured. $this->assertEquals( self::$html, self::$wp_auth0->render_form( self::$html ) ); // Configure Auth0. self::auth0Ready(); $this->assertTrue( WP_Auth0::ready() ); // Should pass through for certain core WP login conditions. $_GET['action'] = 'lostpassword'; $this->assertEquals( self::$html, self::$wp_auth0->render_form( self::$html ) ); $_GET['action'] = 'rp'; $this->assertEquals( self::$html, self::$wp_auth0->render_form( self::$html ) ); } /** * Test that a specific region and domain return the correct number of IP addresses. */ public function testThatFormRendersWhenAuth0IsReady() { // Should pass through initially because WP-Auth0 is not configured. $this->assertEquals( self::$html, self::$wp_auth0->render_form( self::$html ) ); // Configure Auth0. $this->auth0Ready(); $this->assertTrue( WP_Auth0::ready() ); $this->assertContains( 'auth0-login-form', self::$wp_auth0->render_form( self::$html ) ); } }