You are here

protected function WorkflowCollectorTest::assertState in Workbench Moderation to Content Moderation 8.2

Asserts that a workflow type plugin has a specific state.

Parameters

\Drupal\workflows\WorkflowTypeInterface $plugin: The workflow type plugin.

string $state_id: The state ID.

1 call to WorkflowCollectorTest::assertState()
WorkflowCollectorTest::assertWorkflow in tests/src/Kernel/WorkflowCollectorTest.php
Asserts various aspects of a workflow.

File

tests/src/Kernel/WorkflowCollectorTest.php, line 208

Class

WorkflowCollectorTest
@covers \Drupal\wbm2cm\WorkflowCollector @group wbm2cm

Namespace

Drupal\Tests\wbm2cm\Kernel

Code

protected function assertState(WorkflowTypeInterface $plugin, $state_id) {
  $this
    ->assertInstanceOf(StateInterface::class, $plugin
    ->getState($state_id));
}