comparison core/modules/comment/tests/src/Functional/CommentActionsTest.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
30 30
31 // Unpublish a comment. 31 // Unpublish a comment.
32 $action = Action::load('comment_unpublish_action'); 32 $action = Action::load('comment_unpublish_action');
33 $action->execute([$comment]); 33 $action->execute([$comment]);
34 $this->assertTrue($comment->isPublished() === FALSE, 'Comment was unpublished'); 34 $this->assertTrue($comment->isPublished() === FALSE, 'Comment was unpublished');
35 35 $this->assertArraySubset(['module' => ['comment']], $action->getDependencies());
36 // Publish a comment. 36 // Publish a comment.
37 $action = Action::load('comment_publish_action'); 37 $action = Action::load('comment_publish_action');
38 $action->execute([$comment]); 38 $action->execute([$comment]);
39 $this->assertTrue($comment->isPublished() === TRUE, 'Comment was published'); 39 $this->assertTrue($comment->isPublished() === TRUE, 'Comment was published');
40 } 40 }