comparison core/modules/node/tests/src/Kernel/SummaryLengthTest.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 4c8ae668cc8c
children af1871eacc83
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
1 <?php 1 <?php
2 2
3 namespace Drupal\Tests\node\Kernel; 3 namespace Drupal\Tests\node\Kernel;
4 4
5 use Drupal\Component\Utility\Unicode;
6 use Drupal\Core\Datetime\Entity\DateFormat; 5 use Drupal\Core\Datetime\Entity\DateFormat;
7 use Drupal\KernelTests\KernelTestBase; 6 use Drupal\KernelTests\KernelTestBase;
8 use Drupal\node\Entity\Node; 7 use Drupal\node\Entity\Node;
9 use Drupal\simpletest\ContentTypeCreationTrait; 8 use Drupal\simpletest\ContentTypeCreationTrait;
10 use Drupal\simpletest\NodeCreationTrait; 9 use Drupal\simpletest\NodeCreationTrait;
70 DateFormat::create([ 69 DateFormat::create([
71 'id' => 'fallback', 70 'id' => 'fallback',
72 'label' => 'Fallback', 71 'label' => 'Fallback',
73 'pattern' => 'Y-m-d', 72 'pattern' => 'Y-m-d',
74 ])->save(); 73 ])->save();
75
76 // Enable multibyte support.
77 Unicode::setStatus(Unicode::STATUS_MULTIBYTE);
78 } 74 }
79 75
80 /** 76 /**
81 * Tests the node summary length functionality. 77 * Tests the node summary length functionality.
82 */ 78 */