@@ -26,7 +26,7 @@ class ConfigTest extends BrowserTestBase {
2626 /**
2727 * {@inheritdoc}
2828 */
29- protected $ defaultTheme = 'bartik ' ;
29+ protected $ defaultTheme = 'stark ' ;
3030
3131 /**
3232 * A user with permission to administer site configuration.
@@ -67,10 +67,10 @@ public function testConfigForm() {
6767 $ config = $ this ->config ('triplestore_indexer.triplestoreindexerconfig ' );
6868
6969 // Page title field has the default value.
70- $ this ->assertSession ()->fieldExists ('server-url ' );
70+ $ this ->assertSession ()->fieldExists ('server_url ' );
7171 $ this ->assertSession ()->fieldValueEquals (
72- 'server-url ' ,
73- $ config ->get ('server-url ' )
72+ 'server_url ' ,
73+ $ config ->get ('server_url ' )
7474 );
7575
7676 // Source text field has the default value.
@@ -83,20 +83,20 @@ public function testConfigForm() {
8383 $ this ->assertSession ()->fieldExists ('select-auth-method ' );
8484 $ this ->assertSession ()->fieldValueEquals (
8585 'select-auth-method ' ,
86- $ config ->get ('method-of-auth ' )
86+ $ config ->get ('method_of_auth ' ) ?? ' -1 '
8787 );
8888
89- if ($ config ->get ("method-of-auth " ) === "digest " ) {
90- $ this ->assertSession ()->fieldExists ('admin-username ' );
89+ if ($ config ->get ("method_of_auth " ) === "digest " ) {
90+ $ this ->assertSession ()->fieldExists ('admin_username ' );
9191 $ this ->assertSession ()->fieldValueEquals (
92- 'admin-username ' ,
93- $ config ->get ('admin-password ' )
92+ 'admin_username ' ,
93+ $ config ->get ('admin_password ' )
9494 );
9595
96- $ this ->assertSession ()->fieldExists ('admin-password ' );
96+ $ this ->assertSession ()->fieldExists ('admin_password ' );
9797 $ this ->assertSession ()->fieldValueEquals (
98- 'admin-password ' ,
99- $ config ->get ('admin-password ' )
98+ 'admin_password ' ,
99+ $ config ->get ('admin_password ' )
100100 );
101101 }
102102 elseif ($ config ->get ("method-of-auth " ) === "oauth " ) {
@@ -113,22 +113,22 @@ public function testConfigForm() {
113113 );
114114 }
115115
116- $ this ->assertSession ()->fieldExists ('advancedqueue-id ' );
116+ $ this ->assertSession ()->fieldExists ('advancedqueue_id ' );
117117 $ this ->assertSession ()->fieldValueEquals (
118- 'advancedqueue-id ' ,
119- $ config ->get ('advancedqueue-id ' )
118+ 'advancedqueue_id ' ,
119+ $ config ->get ('advancedqueue_id ' ) ?? ' default '
120120 );
121121
122122 $ this ->assertSession ()->fieldExists ('number-of-retries ' );
123123 $ this ->assertSession ()->fieldValueEquals (
124124 'number-of-retries ' ,
125- $ config ->get ('aqj-max-retries ' )
125+ $ config ->get ('aqj_max_retries ' ) ?? 5
126126 );
127127
128128 $ this ->assertSession ()->fieldExists ('retries-delay ' );
129129 $ this ->assertSession ()->fieldValueEquals (
130130 'retries-delay ' ,
131- $ config ->get ('aqj-retry_delay ' )
131+ $ config ->get ('aqj_retry_delay ' ) ?? 100
132132 );
133133 }
134134
0 commit comments