Commit bfbd17e3 authored by catch's avatar catch

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
......@@ -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',
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