public function PaymentFormTest::testFieldSettingsForm in Payment 8.2
@covers ::fieldSettingsForm
File
- modules/
payment_form/ tests/ src/ Unit/ Plugin/ Field/ FieldType/ PaymentFormTest.php, line 62
Class
- PaymentFormTest
- @coversDefaultClass \Drupal\payment_form\Plugin\Field\FieldType\PaymentForm
Namespace
Drupal\Tests\payment_form\Unit\Plugin\Field\FieldTypeCode
public function testFieldSettingsForm() {
$this->sut
->expects($this
->once())
->method('getSetting')
->with('currency_code');
$form = [];
/** @var \Drupal\Core\Form\FormStateInterface $form_state */
$form_state = $this
->createMock(FormStateInterface::class);
$this
->assertIsArray($this->sut
->fieldSettingsForm($form, $form_state));
}