Commit 104134f9 authored by alexpott's avatar alexpott

Issue #2725441 by tstoeckler:...

Issue #2725441 by tstoeckler: \Drupal\simpletest\ContentTypeCreationTrait::createContentType() needlessly rebuilds the router
parent 31e613b3
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment