Skip to content
Snippets Groups Projects
Commit 104134f9 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2725441 by tstoeckler:...

Issue #2725441 by tstoeckler: \Drupal\simpletest\ContentTypeCreationTrait::createContentType() needlessly rebuilds the router
parent 31e613b3
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -39,7 +39,6 @@ protected function createContentType(array $values = array()) {
$type = NodeType::create($values);
$status = $type->save();
node_add_body_field($type);
\Drupal::service('router.builder')->rebuild();
if ($this instanceof \PHPUnit_Framework_TestCase) {
$this->assertSame($status, SAVED_NEW, (new FormattableMarkup('Created content type %type.', array('%type' => $type->id())))->__toString());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment