public function CurrencyFormTest::testSave in Currency 8.3
@covers ::save
File
- tests/
src/ Unit/ Entity/ Currency/ CurrencyFormTest.php, line 284
Class
- CurrencyFormTest
- @coversDefaultClass \Drupal\currency\Entity\Currency\CurrencyForm
Namespace
Drupal\Tests\currency\Unit\Entity\CurrencyCode
public function testSave() {
$this->currency
->expects($this
->once())
->method('save');
$form = array();
$form_state = $this
->createMock(FormStateInterface::class);
$form_state
->expects($this
->once())
->method('setRedirect')
->with('entity.currency.collection');
$this->sut
->save($form, $form_state);
}