TestClassWPPageWrapper
extends WP_UnitTestCase
-
preserveGlobalState
-
-
runTestsInSeparateProcesses
-
Table of Contents
-
POST_DATA
= ['post_parent' => 0, 'post_title' => 'onOffice Test Post', 'post_content' => 'Hello. This is a test.', 'post_status' => 'publish', 'post_date' => '2019-05-09 13:37:37', 'post_type' => 'page']
-
$_ancestorId
: int
-
$_postId
: int
-
$_pSubject
: WPPageWrapper
-
prepare()
: mixed
-
testGetPageByPath()
: mixed
-
testGetPageByPathUnknown()
: mixed
-
testGetPageLinkById()
: mixed
-
testGetPageLinkByPost()
: mixed
-
testGetPageUriByPageId()
: mixed
POST_DATA
public
array<string|int, mixed>
POST_DATA
= ['post_parent' => 0, 'post_title' => 'onOffice Test Post', 'post_content' => 'Hello. This is a test.', 'post_status' => 'publish', 'post_date' => '2019-05-09 13:37:37', 'post_type' => 'page']
$_ancestorId
private
int
$_ancestorId
= 0
$_postId
private
int
$_postId
= 0
$_pSubject
private
WPPageWrapper
$_pSubject
= null
prepare()
public
prepare() : mixed
-
before
-
Return values
mixed
—
testGetPageByPath()
public
testGetPageByPath() : mixed
Return values
mixed
—
testGetPageByPathUnknown()
public
testGetPageByPathUnknown() : mixed
Return values
mixed
—
testGetPageLinkById()
public
testGetPageLinkById() : mixed
Return values
mixed
—
testGetPageLinkByPost()
public
testGetPageLinkByPost() : mixed
Return values
mixed
—
testGetPageUriByPageId()
public
testGetPageUriByPageId() : mixed
Return values
mixed
—