projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website]
/
web
/
core
/
modules
/
content_moderation
/
tests
/
src
/
Kernel
/
EntityOperationsTest.php
diff --git
a/web/core/modules/content_moderation/tests/src/Kernel/EntityOperationsTest.php
b/web/core/modules/content_moderation/tests/src/Kernel/EntityOperationsTest.php
index 63f2c9a7321f836c95e8fcca0a8bfd0636cc7203..0a93924ab42fdc807ee53379e1ca7d5d87531bf5 100644
(file)
--- a/
web/core/modules/content_moderation/tests/src/Kernel/EntityOperationsTest.php
+++ b/
web/core/modules/content_moderation/tests/src/Kernel/EntityOperationsTest.php
@@
-5,7
+5,7
@@
namespace Drupal\Tests\content_moderation\Kernel;
use Drupal\KernelTests\KernelTestBase;
use Drupal\node\Entity\Node;
use Drupal\node\Entity\NodeType;
use Drupal\KernelTests\KernelTestBase;
use Drupal\node\Entity\Node;
use Drupal\node\Entity\NodeType;
-use Drupal\
workflows\Entity\Workflow
;
+use Drupal\
Tests\content_moderation\Traits\ContentModerationTestTrait
;
/**
* @coversDefaultClass \Drupal\content_moderation\EntityOperations
/**
* @coversDefaultClass \Drupal\content_moderation\EntityOperations
@@
-14,6
+14,8
@@
use Drupal\workflows\Entity\Workflow;
*/
class EntityOperationsTest extends KernelTestBase {
*/
class EntityOperationsTest extends KernelTestBase {
+ use ContentModerationTestTrait;
+
/**
* {@inheritdoc}
*/
/**
* {@inheritdoc}
*/
@@
-48,7
+50,7
@@
class EntityOperationsTest extends KernelTestBase {
'label' => 'Page',
]);
$node_type->save();
'label' => 'Page',
]);
$node_type->save();
- $workflow =
Workflow::load('editorial'
);
+ $workflow =
$this->createEditorialWorkflow(
);
$workflow->getTypePlugin()->addEntityTypeAndBundle('node', 'page');
$workflow->save();
}
$workflow->getTypePlugin()->addEntityTypeAndBundle('node', 'page');
$workflow->save();
}