You are here

public function PaymentFormTest::testSchema in Payment 8.2

@covers ::schema

File

modules/payment_form/tests/src/Unit/Plugin/Field/FieldType/PaymentFormTest.php, line 75

Class

PaymentFormTest
@coversDefaultClass \Drupal\payment_form\Plugin\Field\FieldType\PaymentForm

Namespace

Drupal\Tests\payment_form\Unit\Plugin\Field\FieldType

Code

public function testSchema() {
  $field_storage_definition = $this
    ->createMock(FieldStorageDefinitionInterface::class);
  $schema = $this->sut
    ->schema($field_storage_definition);
  $this
    ->assertIsArray($schema);
  $this
    ->assertArrayHasKey('plugin_configuration', $schema['columns']);
  $this
    ->assertArrayHasKey('plugin_id', $schema['columns']);
}