You are here

public function CurrencyLocaleFormTest::testSave in Currency 8.3

@covers ::save

File

tests/src/Unit/Entity/CurrencyLocale/CurrencyLocaleFormTest.php, line 274

Class

CurrencyLocaleFormTest
@coversDefaultClass \Drupal\currency\Entity\CurrencyLocale\CurrencyLocaleForm

Namespace

Drupal\Tests\currency\Unit\Entity\CurrencyLocale

Code

public function testSave() {
  $this->currencyLocale
    ->expects($this
    ->once())
    ->method('save');
  $form = array();
  $form_state = $this
    ->createMock(FormStateInterface::class);
  $form_state
    ->expects($this
    ->once())
    ->method('setRedirect')
    ->with('entity.currency_locale.collection');
  $this->sut
    ->save($form, $form_state);
}