Skip to content
Snippets Groups Projects
Commit bfbd17e3 authored by catch's avatar catch
Browse files

Issue #2641620 by Mac_Weber: Replace deprecated usage of ...

Issue #2641620 by Mac_Weber: Replace deprecated usage of  entity_create('tour') with a direct call to Tour::create()
parent d5a73345
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
......@@ -8,6 +8,7 @@
namespace Drupal\tour\Tests;
use Drupal\language\Entity\ConfigurableLanguage;
use Drupal\tour\Entity\Tour;
/**
* Tests the functionality of tour tips.
......@@ -108,7 +109,7 @@ public function testTourFunctionality() {
$this->assertNotEqual(count($elements), 1, 'Did not find English variant of tip 1.');
// Programmatically create a tour for use through the remainder of the test.
$tour = entity_create('tour', array(
$tour = Tour::create(array(
'id' => 'tour-entity-create-test-en',
'label' => 'Tour test english',
'langcode' => 'en',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment