You are here

public function PluginSelectTest::testPluginSelect in Commerce Core 8.2

Tests the plugin_select widget.

File

tests/src/FunctionalJavascript/PluginSelectTest.php, line 60

Class

PluginSelectTest
Tests the plugin select widgets.

Namespace

Drupal\Tests\commerce\FunctionalJavascript

Code

public function testPluginSelect() {
  $this
    ->createField('commerce_condition');
  $display = commerce_get_entity_display('entity_test', 'entity_test', 'form');
  $display
    ->setComponent('test_plugin', [
    'type' => 'commerce_plugin_select',
  ])
    ->save();
  $this
    ->doTestConditions();
}