Commit d3886091 authored by catch's avatar catch

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

Issue #2641522 by Mac_Weber: Replace deprecated usage of  entity_create('date_format') with a direct call to DateFormat::create()
parent 4b703191
......@@ -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 @@ function testDateFormatConfiguration() {
$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\>',
......
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