summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2016-02-15 07:34:48 (GMT)
committerNathaniel Catchpole2016-02-15 07:34:48 (GMT)
commitbfbd17e3055bde4134fdfd0921a1e5e2720797e3 (patch)
tree58083085b449ff8264eb5303caa527a98b75287b
parentd5a7334535236136cec6e7948a6b85a590a6aba5 (diff)
Issue #2641620 by Mac_Weber: Replace deprecated usage of entity_create('tour') with a direct call to Tour::create()
-rw-r--r--core/modules/tour/src/Tests/TourTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modules/tour/src/Tests/TourTest.php b/core/modules/tour/src/Tests/TourTest.php
index 7f656d3..cfa311b 100644
--- a/core/modules/tour/src/Tests/TourTest.php
+++ b/core/modules/tour/src/Tests/TourTest.php
@@ -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 @@ class TourTest extends TourTestBasic {
$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',