BcTimestampNormalizerUnixTest.php in Entity Share 8.2
File
modules/entity_share_client/tests/src/Functional/BcTimestampNormalizerUnixTest.php
View source
<?php
declare (strict_types=1);
namespace Drupal\Tests\entity_share_client\Functional;
class BcTimestampNormalizerUnixTest extends EntityShareClientFunctionalTestBase {
protected static $entityTypeId = 'node';
protected static $entityBundleId = 'es_test';
protected static $entityLangcode = 'en';
protected function setUp() {
parent::setUp();
$serialization_settings = $this
->config('serialization.settings');
$serialization_settings
->set('bc_timestamp_normalizer_unix', TRUE)
->save(TRUE);
$this
->postSetupFixture();
}
protected function getEntitiesDataArray() {
return [
'node' => [
'en' => [
'es_test' => $this
->getCompleteNodeInfos([
'created' => [
'value' => $this->faker
->unixTime(),
'checker_callback' => 'getValue',
],
]),
],
],
];
}
public function testBasicPull() {
$this
->pullEveryChannels();
$this
->checkCreatedEntities();
}
}