Commit 1dca1b27 authored by Jean Valverde's avatar Jean Valverde 🏗️
Browse files

tests: Declare the setting in the icon validation test

parent f5c004cb
Loading
Loading
Loading
Loading
Loading
+4 −1
Changes for tests/src/Unit/Element/IconAutocompleteUnitTest.php: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -351,7 +351,7 @@ class IconAutocompleteUnitTest extends UnitTestCase {
            'icon_id' => 'foo:baz',
            'icon_settings' => [
              'foo' => [
                'settings_1' => [],
                'settings_1' => 'bar',
              ],
            ],
          ],
@@ -389,6 +389,9 @@ class IconAutocompleteUnitTest extends UnitTestCase {
    $ui_icon_pack_plugin_manager->method('getIcon')
      ->with($icon->getId())
      ->willReturn($icon);
    $ui_icon_pack_plugin_manager->method('getDefinition')
      ->with($pack_id)
      ->willReturn(['settings' => ['settings_1' => []]]);
    $this->container->set('plugin.manager.icon_pack', $ui_icon_pack_plugin_manager);

    $form_state = $this->createMock('Drupal\Core\Form\FormState');