public function EntityExtraFieldInfoTest::testInvoke in Payment 8.2
Same name in this branch
- 8.2 modules/payment_reference/tests/src/Unit/Hook/EntityExtraFieldInfoTest.php \Drupal\Tests\payment_reference\Unit\Hook\EntityExtraFieldInfoTest::testInvoke()
- 8.2 modules/payment_form/tests/src/Unit/Hook/EntityExtraFieldInfoTest.php \Drupal\Tests\payment_form\Unit\Hook\EntityExtraFieldInfoTest::testInvoke()
@covers ::invoke
File
- modules/
payment_form/ tests/ src/ Unit/ Hook/ EntityExtraFieldInfoTest.php, line 41
Class
- EntityExtraFieldInfoTest
- @coversDefaultClass \Drupal\payment_form\Hook\EntityExtraFieldInfo
Namespace
Drupal\Tests\payment_form\Unit\HookCode
public function testInvoke() {
$fields = $this->sut
->invoke();
$this
->assertIsArray($fields);
$this
->assertArrayHasKey('payment_method', $fields['payment']['payment_form']['form']);
}