You are here

public function EntityFormTest::testAttachSubmitHandlerNotAttachable in Acquia Content Hub 8

Tests the attachSubmitHandler() method, not attachable.

@covers ::attachSubmitHandler

File

tests/src/Unit/Form/EntityFormTest.php, line 177

Class

EntityFormTest
PHPUnit test for the EntityForm class.

Namespace

Drupal\Tests\acquia_contenthub\Unit\Form

Code

public function testAttachSubmitHandlerNotAttachable() {
  $form_actions = [];
  $form_submit_handler = 'my_handler';
  $this->entityForm
    ->attachSubmitHandler($form_actions, $form_submit_handler);
  $this
    ->assertEquals([], $form_actions);
}