Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
90882577
Commit
90882577
authored
Feb 07, 2017
by
xjm
Browse files
Issue
#2850592
by alexpott, xjm: Typos in ContentModertaionWorkflowTypeApiTest
parent
05f42e4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
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