You are here

function CurrencyDeleteFormTest::testSubmitForm in Currency 8.3

@covers ::submitForm

File

tests/src/Unit/Entity/Currency/CurrencyDeleteFormTest.php, line 105

Class

CurrencyDeleteFormTest
@coversDefaultClass \Drupal\currency\Entity\Currency\CurrencyDeleteForm

Namespace

Drupal\Tests\currency\Unit\Entity\Currency

Code

function testSubmitForm() {
  $this->currency
    ->expects($this
    ->once())
    ->method('delete');
  $form = array();
  $form_state = $this
    ->createMock(FormStateInterface::class);
  $form_state
    ->expects($this
    ->once())
    ->method('setRedirectUrl');
  $this->sut
    ->submitForm($form, $form_state);
}