The second Functional test we will write should test the salutation override form itself. In the previous one, we interacted with the configuration API directly to make changes to the configuration value. Now we will see if the form to do so actually works. But since we can reuse quite a lot from the previous test, and they are very closely related, we can add it to the same class:
/** * Tests that the configuration form for overriding the message works. */ public function testForm() { $expected = $this->assertDefaultSalutation(); $this->drupalGet('/admin/config/salutation-configuration'); $this->assertSession()->statusCodeEquals(403); $account = $this->drupalCreateUser(['administer site configuration']); $this->drupalLogin($account); ...