projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgraded drupal core with security updates
[yaffs-website]
/
web
/
core
/
modules
/
content_moderation
/
tests
/
src
/
Kernel
/
ModerationStateFieldItemListTest.php
diff --git
a/web/core/modules/content_moderation/tests/src/Kernel/ModerationStateFieldItemListTest.php
b/web/core/modules/content_moderation/tests/src/Kernel/ModerationStateFieldItemListTest.php
index 7e9a75c3f412e0d78dcf3afa062472edcf9dae68..5a2f6a0b325559275b9fb3740f098bcf28c63907 100644
(file)
--- a/
web/core/modules/content_moderation/tests/src/Kernel/ModerationStateFieldItemListTest.php
+++ b/
web/core/modules/content_moderation/tests/src/Kernel/ModerationStateFieldItemListTest.php
@@
-64,7
+64,8
@@
class ModerationStateFieldItemListTest extends KernelTestBase {
* Test the field item list when accessing an index.
*/
public function testArrayIndex() {
* Test the field item list when accessing an index.
*/
public function testArrayIndex() {
- $this->assertEquals('published', $this->testNode->moderation_state[0]->value);
+ $this->assertFalse($this->testNode->isPublished());
+ $this->assertEquals('draft', $this->testNode->moderation_state[0]->value);
}
/**
}
/**
@@
-75,7
+76,7
@@
class ModerationStateFieldItemListTest extends KernelTestBase {
foreach ($this->testNode->moderation_state as $item) {
$states[] = $item->value;
}
foreach ($this->testNode->moderation_state as $item) {
$states[] = $item->value;
}
- $this->assertEquals(['
published
'], $states);
+ $this->assertEquals(['
draft
'], $states);
}
}
}
}