fix gatherpress tests: event must always be published
Some checks failed
Some checks failed
This commit is contained in:
parent
982c9c3e44
commit
1aedb964a9
2 changed files with 3 additions and 2 deletions
|
@ -54,7 +54,7 @@
|
||||||
],
|
],
|
||||||
"test-debug": [
|
"test-debug": [
|
||||||
"@prepare-test",
|
"@prepare-test",
|
||||||
"@test-vs-event-list"
|
"@test-gatherpress"
|
||||||
],
|
],
|
||||||
"test-vs-event-list": "phpunit --filter=vs_event_list",
|
"test-vs-event-list": "phpunit --filter=vs_event_list",
|
||||||
"test-the-events-calendar": "phpunit --filter=the_events_calendar",
|
"test-the-events-calendar": "phpunit --filter=the_events_calendar",
|
||||||
|
|
|
@ -49,6 +49,7 @@ class Test_GatherPress extends WP_UnitTestCase {
|
||||||
'post_title' => 'Unit Test Event',
|
'post_title' => 'Unit Test Event',
|
||||||
'post_type' => 'gatherpress_event',
|
'post_type' => 'gatherpress_event',
|
||||||
'post_content' => 'Unit Test description.',
|
'post_content' => 'Unit Test description.',
|
||||||
|
'post_status' => 'publish',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$event = new \GatherPress\Core\Event( $post_id );
|
$event = new \GatherPress\Core\Event( $post_id );
|
||||||
|
@ -77,7 +78,7 @@ class Test_GatherPress extends WP_UnitTestCase {
|
||||||
'post_title' => 'Unit Test Event',
|
'post_title' => 'Unit Test Event',
|
||||||
'post_type' => 'gatherpress_event',
|
'post_type' => 'gatherpress_event',
|
||||||
'post_content' => 'Unit Test description.',
|
'post_content' => 'Unit Test description.',
|
||||||
'post_status' => 'published',
|
'post_status' => 'publish',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$event = new \GatherPress\Core\Event( $post_id );
|
$event = new \GatherPress\Core\Event( $post_id );
|
||||||
|
|
Loading…
Reference in a new issue