Skip to content

Commit 8f60b5b

Browse files
committed
Whitespace and fix failing tests
1 parent 7448539 commit 8f60b5b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

WP_Auth0.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ function wp_auth0_filter_login_override_url( $wp_login_url ) {
635635
*/
636636
function wp_auth0_filter_login_override_form() {
637637
if ( wp_auth0_can_show_wp_login_form() && isset( $_REQUEST['wle'] ) ) {
638-
$wle_encoded = esc_attr($_REQUEST['wle']);
638+
$wle_encoded = esc_attr( $_REQUEST['wle'] );
639639
printf( '<input type="hidden" name="wle" value="%s" />', $wle_encoded );
640640
}
641641
}

tests/testAdminAppearanceValidation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function testThatLanguageDictIsBlankIfInvalidJson() {
101101
public function testThatLanguageDictIsPreviousValIfInvalidJson() {
102102
$validated = self::$admin->basic_validation(
103103
[ 'language_dictionary' => '{"previous":"value"}' ],
104-
[ 'language_dictionary' => uniqid() ]
104+
[ 'language_dictionary' => '{"new":value"}' ]
105105
);
106106
$this->assertEquals( '{"previous":"value"}', $validated['language_dictionary'] );
107107

tests/testEmbedWidget.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ public function testThatWidgetIdIsCorrect() {
3434
public function testThatInvalidDictJsonIsRevertedToPreviousValue() {
3535
$widget = new WP_Auth0_Embed_Widget();
3636
$new_opts = [
37-
'dict' => uniqid(),
37+
'dict' => '__test_new_value__',
3838
'extra_conf' => '',
3939
];
40-
$old_opts = [ 'dict' => uniqid() ];
40+
$old_opts = [ 'dict' => '__test_old_value__' ];
4141
$validated = $widget->update( $new_opts, $old_opts );
4242

43-
$this->assertEquals( $old_opts['dict'], $validated['dict'] );
43+
$this->assertEquals( '__test_old_value__', $validated['dict'] );
4444
}
4545

4646
public function testThatEmptyDictJsonIsAccepted() {

0 commit comments

Comments
 (0)