We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c618a3 commit 2159c6aCopy full SHA for 2159c6a
tests/test-stream-manager-integration.php
@@ -17,4 +17,15 @@ function testBasicStream() {
17
$this->assertEquals($count, count($posts));
18
}
19
20
+ function testPostPublish() {
21
+ $stream = $this->buildStream();
22
+ $this->buildPosts(4);
23
+ $posts = $stream->get_posts();
24
+ $this->assertEquals(4, count($posts));
25
+ $post_id = $this->factory->post->create(array('post_status' => 'draft'));
26
+ wp_publish_post($post_id);
27
+ $posts = $stream->get_posts(array('post_type' => 'post'));
28
+ $this->assertEquals(5, count($posts));
29
+ }
30
+
31
0 commit comments