Chris@0: profile != 'standard') { Chris@0: $this->drupalCreateContentType(['type' => 'page', 'name' => 'Basic page']); Chris@0: $this->drupalCreateContentType(['type' => 'article', 'name' => 'Article']); Chris@0: } Chris@0: } Chris@0: Chris@0: /** Chris@4: * Submission of a form via press submit button. Chris@0: * Chris@0: * @param string $path Chris@0: * Location of the form to be submitted: either a Drupal path, absolute Chris@0: * path, or NULL to use the current page. Chris@0: * @param array $edit Chris@0: * Form field data to submit. Unlike drupalPostForm(), this does not support Chris@0: * file uploads. Chris@0: * @param string $submit Chris@0: * Value of the submit button to submit clicking. Unlike drupalPostForm(), Chris@0: * this does not support AJAX. Chris@0: * @param string $form_html_id Chris@0: * (optional) HTML ID of the form, to disambiguate. Chris@4: * Chris@4: * @deprecated in Drupal 8.6.x, to be removed before Drupal 9.0.x. Use Chris@4: * \Drupal\Tests\BrowserTestBase::drupalPostForm() instead. Chris@4: * Chris@4: * @see https://www.drupal.org/node/2979950 Chris@0: */ Chris@0: protected function submitGetForm($path, $edit, $submit, $form_html_id = NULL) { Chris@4: @trigger_error(__CLASS__ . '::' . __FUNCTION__ . '() is deprecated in Drupal 8.6.x, for removal before the Drupal 9.0.0 release. Use \Drupal\Tests\BrowserTestBase::drupalPostForm() instead. See https://www.drupal.org/node/2979950.', E_USER_DEPRECATED); Chris@4: $this->drupalPostForm($path, $edit, $submit, [], $form_html_id); Chris@0: } Chris@0: Chris@0: }