protected function MigrateTableIncrementTest::setUp in Migrate Plus 8.5
Overrides MigrateTestBase::setUp
File
- tests/
src/ Kernel/ MigrateTableIncrementTest.php, line 32
Class
- MigrateTableIncrementTest
- Tests migration destination table with auto-increment keys.
Namespace
Drupal\Tests\migrate_plus\KernelCode
protected function setUp() : void {
parent::setUp();
$this->connection = $this->container
->get('database');
$this->connection
->schema()
->createTable(static::TABLE_NAME, [
'description' => 'Test table',
'fields' => [
'id' => [
'type' => 'serial',
'not null' => TRUE,
],
'data1' => [
'type' => 'varchar',
'length' => '32',
'not null' => TRUE,
],
'data2' => [
'type' => 'varchar',
'length' => '32',
'not null' => TRUE,
],
],
'primary key' => [
'id',
],
]);
}