TimestampSchemaTest.php

Same filename in other branches
  1. 8.9.x core/tests/Drupal/KernelTests/Core/Datetime/TimestampSchemaTest.php
  2. 10 core/tests/Drupal/KernelTests/Core/Datetime/TimestampSchemaTest.php
  3. 11.x core/tests/Drupal/KernelTests/Core/Datetime/TimestampSchemaTest.php

Namespace

Drupal\KernelTests\Core\Datetime

File

core/tests/Drupal/KernelTests/Core/Datetime/TimestampSchemaTest.php

View source
<?php

namespace Drupal\KernelTests\Core\Datetime;

use Drupal\KernelTests\KernelTestBase;

/**
 * Tests timestamp schema.
 *
 * @group Common
 */
class TimestampSchemaTest extends KernelTestBase {
    
    /**
     * {@inheritdoc}
     */
    protected static $modules = [
        'entity_test',
        'field',
        'field_timestamp_test',
        'user',
    ];
    
    /**
     * {@inheritdoc}
     */
    protected function setUp() : void {
        parent::setUp();
        $this->installEntitySchema('entity_test');
    }
    
    /**
     * Tests if the timestamp field schema is validated.
     */
    public function testTimestampSchema() {
        $this->installConfig([
            'field_timestamp_test',
        ]);
        // Make at least an assertion.
        $this->assertTrue(TRUE);
    }

}

Classes

Title Deprecated Summary
TimestampSchemaTest Tests timestamp schema.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.