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
/
Functional
/
ModerationStateAccessTest.php
diff --git
a/web/core/modules/content_moderation/tests/src/Functional/ModerationStateAccessTest.php
b/web/core/modules/content_moderation/tests/src/Functional/ModerationStateAccessTest.php
index 74c457b0bf9752608d58936494d032b2f70b232d..86269193e3f67dcfd99b289512ed72c8efd9fe1e 100644
(file)
--- a/
web/core/modules/content_moderation/tests/src/Functional/ModerationStateAccessTest.php
+++ b/
web/core/modules/content_moderation/tests/src/Functional/ModerationStateAccessTest.php
@@
-5,7
+5,7
@@
namespace Drupal\Tests\content_moderation\Functional;
use Drupal\node\Entity\Node;
use Drupal\node\Entity\NodeType;
use Drupal\Tests\BrowserTestBase;
use Drupal\node\Entity\Node;
use Drupal\node\Entity\NodeType;
use Drupal\Tests\BrowserTestBase;
-use Drupal\
workflows\Entity\Workflow
;
+use Drupal\
Tests\content_moderation\Traits\ContentModerationTestTrait
;
/**
* Tests the view access control handler for moderation state entities.
/**
* Tests the view access control handler for moderation state entities.
@@
-14,6
+14,8
@@
use Drupal\workflows\Entity\Workflow;
*/
class ModerationStateAccessTest extends BrowserTestBase {
*/
class ModerationStateAccessTest extends BrowserTestBase {
+ use ContentModerationTestTrait;
+
/**
* {@inheritdoc}
*/
/**
* {@inheritdoc}
*/
@@
-99,7
+101,7
@@
class ModerationStateAccessTest extends BrowserTestBase {
]);
$node_type->save();
]);
$node_type->save();
- $workflow =
Workflow::load('editorial'
);
+ $workflow =
$this->createEditorialWorkflow(
);
$workflow->getTypePlugin()->addEntityTypeAndBundle('node', $machine_name);
$workflow->save();
return $node_type;
$workflow->getTypePlugin()->addEntityTypeAndBundle('node', $machine_name);
$workflow->save();
return $node_type;