You are here

public function DefaultTableMappingTest::testTemporaryTableMapping in Drupal 8

@coversDefaultClass \Drupal\Core\Entity\Sql\TemporaryTableMapping

@expectedDeprecation Drupal\Core\Entity\Sql\TemporaryTableMapping is deprecated in Drupal 8.7.x and will be removed before Drupal 9.0.0. Use the default table mapping with a prefix instead. @group legacy

File

core/tests/Drupal/Tests/Core/Entity/Sql/DefaultTableMappingTest.php, line 581

Class

DefaultTableMappingTest
@coversDefaultClass \Drupal\Core\Entity\Sql\DefaultTableMapping @group Entity

Namespace

Drupal\Tests\Core\Entity\Sql

Code

public function testTemporaryTableMapping() {
  $table_mapping = new TemporaryTableMapping($this->entityType, [], '');
  $this
    ->assertInstanceOf(DefaultTableMapping::class, $table_mapping);
}