Chris@0: randomMachineName(8)); Chris@0: Role::create(['id' => $rid])->save(); Chris@0: Chris@0: // Test user_add_role_action configuration. Chris@0: $config = $this->config('system.action.user_add_role_action.' . $rid); Chris@0: $this->assertEqual($config->get('id'), 'user_add_role_action.' . $rid); Chris@0: $this->assertConfigSchema(\Drupal::service('config.typed'), $config->getName(), $config->get()); Chris@0: Chris@0: // Test user_remove_role_action configuration. Chris@0: $config = $this->config('system.action.user_remove_role_action.' . $rid); Chris@0: $this->assertEqual($config->get('id'), 'user_remove_role_action.' . $rid); Chris@0: $this->assertConfigSchema(\Drupal::service('config.typed'), $config->getName(), $config->get()); Chris@0: } Chris@0: Chris@0: }