summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2016-01-01 04:14:58 (GMT)
committerNathaniel Catchpole2016-01-01 04:14:58 (GMT)
commitd38860918c2fc648b6bd6885ea2c116014f06753 (patch)
treef2308af2ce12134a986c5f0e3454f13ccd27e993
parent4b703191b3e7ec66c3f8a1777b04c63cc3c19b22 (diff)
Issue #2641522 by Mac_Weber: Replace deprecated usage of entity_create('date_format') with a direct call to DateFormat::create()
-rw-r--r--core/modules/system/src/Tests/System/DateTimeTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modules/system/src/Tests/System/DateTimeTest.php b/core/modules/system/src/Tests/System/DateTimeTest.php
index b2a5d2f..bb69dcf 100644
--- a/core/modules/system/src/Tests/System/DateTimeTest.php
+++ b/core/modules/system/src/Tests/System/DateTimeTest.php
@@ -7,6 +7,7 @@
namespace Drupal\system\Tests\System;
+use Drupal\Core\Datetime\Entity\DateFormat;
use Drupal\Core\Url;
use Drupal\simpletest\WebTestBase;
@@ -135,7 +136,7 @@ class DateTimeTest extends WebTestBase {
$this->assertText($name, 'Custom date format appears in the date format list.');
$this->assertText(t('Delete'), 'Delete link for custom date format appears.');
- $date_format = entity_create('date_format', array(
+ $date_format = DateFormat::create(array(
'id' => 'xss_short',
'label' => 'XSS format',
'pattern' => '\<\s\c\r\i\p\t\>\a\l\e\r\t\(\'\X\S\S\'\)\;\<\/\s\c\r\i\p\t\>',