class TimestampSchemaTest
Same name and namespace in other branches
- 11.x core/tests/Drupal/KernelTests/Core/Datetime/TimestampSchemaTest.php \Drupal\KernelTests\Core\Datetime\TimestampSchemaTest
- 10 core/tests/Drupal/KernelTests/Core/Datetime/TimestampSchemaTest.php \Drupal\KernelTests\Core\Datetime\TimestampSchemaTest
- 8.9.x core/tests/Drupal/KernelTests/Core/Datetime/TimestampSchemaTest.php \Drupal\KernelTests\Core\Datetime\TimestampSchemaTest
Tests timestamp schema.
@group Common
Hierarchy
- class \Drupal\KernelTests\KernelTestBase implements \Drupal\Core\DependencyInjection\ServiceProviderInterface uses \Drupal\KernelTests\AssertLegacyTrait, \Drupal\KernelTests\AssertContentTrait, \Drupal\Tests\RandomGeneratorTrait, \Drupal\Tests\ConfigTestTrait, \Drupal\Tests\ExtensionListTestTrait, \Drupal\Tests\TestRequirementsTrait, \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\KernelTests\Core\Datetime\TimestampSchemaTest extends \Drupal\KernelTests\KernelTestBase
Expanded class hierarchy of TimestampSchemaTest
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Datetime/ TimestampSchemaTest.php, line 12
Namespace
Drupal\KernelTests\Core\DatetimeView source
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);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.