diff --git a/core/modules/syslog/src/Tests/SyslogTest.php b/core/modules/syslog/src/Tests/SyslogTest.php index 47ecb3f..11b577f 100644 --- a/core/modules/syslog/src/Tests/SyslogTest.php +++ b/core/modules/syslog/src/Tests/SyslogTest.php @@ -1,15 +1,15 @@ assertText(t('The configuration options have been saved.')); $this->drupalGet('admin/config/development/logging'); - if ($this->parse()) { - $field = $this->xpath('//option[@value=:value]', [':value' => LOG_LOCAL6]); // Should be one field. - $this->assertTrue($field[0]['selected'] == 'selected', 'Facility value saved.'); - } + // Should be one field. + $field = $this->xpath('//option[@value=:value]', [':value' => LOG_LOCAL6]); + $this->assertSame('selected', $field[0]->getAttribute('selected'), 'Facility value saved.'); } }