You are here

public function ImceSettingsFormTest::testProfileOptions in IMCE 8

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/Form/ImceSettingsFormTest.php \Drupal\Tests\imce\Kernel\Form\ImceSettingsFormTest::testProfileOptions()

Test method getProfileOptions().

File

tests/src/Kernel/Form/ImceSettingsFormTest.php, line 64

Class

ImceSettingsFormTest
Kernel tests for ImceSettingsForm.

Namespace

Drupal\Tests\imce\Kernel\Form

Code

public function testProfileOptions() {
  $options = $this->imceSettingsForm
    ->getProfileOptions();
  $this
    ->assertTrue(is_array($options));
  $this
    ->assertArraySubset($options, [
    '' => '-' . $this
      ->t('None') . '-',
  ]);
}