Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
90882577
Commit
90882577
authored
Feb 07, 2017
by
xjm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2850592
by alexpott, xjm: Typos in ContentModertaionWorkflowTypeApiTest
parent
05f42e4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
core/modules/content_moderation/tests/src/Kernel/ContentModerationWorkflowTypeApiTest.php
...tests/src/Kernel/ContentModerationWorkflowTypeApiTest.php
+5
-5
No files found.
core/modules/content_moderation/tests/src/Kernel/ContentModer
t
aionWorkflowTypeApiTest.php
→
core/modules/content_moderation/tests/src/Kernel/ContentModera
t
ionWorkflowTypeApiTest.php
View file @
90882577
...
...
@@ -12,7 +12,7 @@
*
* @coversDefaultClass \Drupal\content_moderation\Plugin\WorkflowType\ContentModeration
*/
class
ContentModer
t
aionWorkflowTypeApiTest
extends
KernelTestBase
{
class
ContentModera
t
ionWorkflowTypeApiTest
extends
KernelTestBase
{
/**
* A workflow for testing.
...
...
@@ -50,8 +50,8 @@ protected function setUp() {
public
function
testGetBundlesForEntityType
()
{
/** @var \Drupal\content_moderation\Plugin\WorkflowType\ContentModeration $workflow_plugin */
$workflow_plugin
=
$this
->
workflow
->
getTypePlugin
();
// The content moderation plugin does not valid the existence of the
entity
// type or bundle.
// The content moderation plugin does not valid
ate
the existence of the
//
entity
type or bundle.
$this
->
assertEquals
([],
$workflow_plugin
->
getBundlesForEntityType
(
'fake_node'
));
$workflow_plugin
->
addEntityTypeAndBundle
(
'fake_node'
,
'fake_page'
);
$this
->
assertEquals
([
'fake_page'
],
$workflow_plugin
->
getBundlesForEntityType
(
'fake_node'
));
...
...
@@ -68,8 +68,8 @@ public function testGetBundlesForEntityType() {
public
function
testAppliesToEntityTypeAndBundle
()
{
/** @var \Drupal\content_moderation\Plugin\WorkflowType\ContentModeration $workflow_plugin */
$workflow_plugin
=
$this
->
workflow
->
getTypePlugin
();
// The content moderation plugin does not valid the existence of the
entity
// type or bundle.
// The content moderation plugin does not valid
ate
the existence of the
//
entity
type or bundle.
$this
->
assertFalse
(
$workflow_plugin
->
appliesToEntityTypeAndBundle
(
'fake_node'
,
'fake_page'
));
$workflow_plugin
->
addEntityTypeAndBundle
(
'fake_node'
,
'fake_page'
);
$this
->
assertTrue
(
$workflow_plugin
->
appliesToEntityTypeAndBundle
(
'fake_node'
,
'fake_page'
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment