PaymentReferenceItemListTest.php in Payment 8.2
File
modules/payment_reference/tests/src/Unit/Plugin/Field/FieldType/PaymentReferenceItemListTest.php
View source
<?php
namespace Drupal\Tests\payment_reference\Unit\Plugin\Field\FieldType;
use Drupal\Core\Form\FormStateInterface;
use Drupal\payment_reference\Plugin\Field\FieldType\PaymentReferenceItemList;
use Drupal\Tests\UnitTestCase;
class PaymentReferenceItemListTest extends UnitTestCase {
protected $sut;
protected function setUp() : void {
$this->sut = $this
->getMockBuilder(PaymentReferenceItemList::class)
->disableOriginalConstructor()
->setMethods(NULL)
->getMock();
}
public function testDefaultValuesForm() {
$form = [];
$form_state = $this
->createMock(FormStateInterface::class);
$this
->assertSame([], $this->sut
->defaultValuesForm($form, $form_state));
}
public function testDefaultValuesFormValidate() {
$element = [];
$form = [];
$form_state = $this
->createMock(FormStateInterface::class);
$this
->assertNull($this->sut
->defaultValuesFormValidate($element, $form, $form_state));
}
public function testDefaultValuesFormSubmit() {
$element = [];
$form = [];
$form_state = $this
->createMock(FormStateInterface::class);
$this
->assertNull($this->sut
->defaultValuesFormSubmit($element, $form, $form_state));
}
}