You are here

public function VoteUpDownWidgetManagerTest::testDefinitions in Vote Up/Down 8

Tests if the plugin created by the test is same as that of the original definition.

File

tests/src/Unit/VoteUpDownWidgetManagerTest.php, line 54

Class

VoteUpDownWidgetManagerTest
A Unit test to check if the plugins are working fine.

Namespace

Drupal\Tests\vud\Unit

Code

public function testDefinitions() {
  $definitions = $this->voteUpDownWidgetManager
    ->getDefinitions();
  $this
    ->assertSame([
    'newPlugin',
  ], array_keys($definitions));
}