use Drupal\KernelTests\KernelTestBase;
use Drupal\workflows\Entity\Workflow;
-use Drupal\workflow_type_test\DecoratedState;
-use Drupal\workflow_type_test\DecoratedTransition;
/**
* Workflow entity tests that require modules or storage.
*
- * @coversDefaultClass \Drupal\workflows\Entity\Workflow
+ * @coversDefaultClass \Drupal\workflow_type_test\Plugin\WorkflowType\ComplexTestType
*
* @group workflows
*/
public static $modules = ['workflows', 'workflow_type_test'];
/**
- * Tests a workflow type that decorates transitions and states.
- *
- * @covers ::getState
- * @covers ::getTransition
- */
- public function testComplexType() {
- $workflow = new Workflow(['id' => 'test', 'type' => 'workflow_type_complex_test'], 'workflow');
- $workflow
- ->addState('draft', 'Draft')
- ->addTransition('create_new_draft', 'Create new draft', ['draft'], 'draft');
- $this->assertInstanceOf(DecoratedState::class, $workflow->getState('draft'));
- $this->assertInstanceOf(DecoratedTransition::class, $workflow->getTransition('create_new_draft'));
- }
-
- /**
- * @covers ::loadMultipleByType
+ * @covers \Drupal\workflows\Entity\Workflow::loadMultipleByType
*/
public function testLoadMultipleByType() {
$workflow1 = new Workflow(['id' => 'test1', 'type' => 'workflow_type_complex_test'], 'workflow');