Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WP Plugins
View All Posts Pages
Commits
4417991f
Commit
4417991f
authored
Sep 27, 2020
by
Erick Hitter
Browse files
`void` return type didn't come until 7.1
parent
ae5a6ee8
Pipeline
#2915
failed with stages
in 2 minutes and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/test-post-filters.php
View file @
4417991f
...
...
@@ -37,7 +37,7 @@ class PostFilters extends WP_UnitTestCase {
/**
* Prepare data for tests.
*/
public
function
setUp
()
:
void
{
public
function
setUp
()
{
parent
::
setUp
();
static
::
$post_id
=
$this
->
factory
->
post
->
create
(
...
...
@@ -53,7 +53,7 @@ class PostFilters extends WP_UnitTestCase {
/**
* Test retrieving page 1 content.
*/
public
function
test_view_page_1
()
:
void
{
public
function
test_view_page_1
()
{
query_posts
(
array
(
'p'
=>
static
::
$post_id
,
...
...
@@ -72,7 +72,7 @@ class PostFilters extends WP_UnitTestCase {
/**
* Test retrieving page 2 content.
*/
public
function
test_view_page_2
()
:
void
{
public
function
test_view_page_2
()
{
query_posts
(
array
(
'p'
=>
static
::
$post_id
,
...
...
@@ -92,7 +92,7 @@ class PostFilters extends WP_UnitTestCase {
/**
* Test retrieving page 3 content.
*/
public
function
test_view_page_3
()
:
void
{
public
function
test_view_page_3
()
{
query_posts
(
array
(
'p'
=>
static
::
$post_id
,
...
...
@@ -112,7 +112,7 @@ class PostFilters extends WP_UnitTestCase {
/**
* Test retrieving "view all" contents.
*/
public
function
test_view_all
()
:
void
{
public
function
test_view_all
()
{
query_posts
(
array
(
'p'
=>
static
::
$post_id
,
...
...
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