assertWPError( $error ); $this->assertEquals( $error_code, $error->get_error_code() ); } else { $this->assertNotWPError( $error ); } } public function data_is_authorize_application_password_request_valid() { return array( array( array(), '', ), array( array( 'success_url' => 'http://example.org' ), 'invalid_redirect_scheme', ), array( array( 'reject_url' => 'http://example.org' ), 'invalid_redirect_scheme', ), array( array( 'success_url' => 'https://example.org' ), '', ), array( array( 'reject_url' => 'https://example.org' ), '', ), array( array( 'success_url' => 'wordpress://example' ), '', ), array( array( 'reject_url' => 'wordpress://example' ), '', ), ); } }