Property | Type | Description | |
---|---|---|---|
$author_id | |||
$comment_ids | |||
$old_current_user | |||
$old_options | |||
$post_ids | |||
$structure | Those tests will be run against the specified permastruct. | ||
$term_ids | |||
$terms |
Method | Description | |
---|---|---|
assertCanonical ( string $test_url, string $expected, integer $ticket, array $expected_doing_it_wrong = [] ) | Assert that a given URL is the same a the canonical URL generated by WP. | |
delete_shared_fixtures ( ) | Clean up shared fixtures. | |
generate_shared_fixtures ( $factory ) | Generate fixtures to be shared between canonical tests. | |
get_canonical ( string $test_url ) | Get the canonical URL given a raw URL. | |
setUp ( ) |
public assertCanonical ( string $test_url, string $expected, integer $ticket, array $expected_doing_it_wrong = [] ) | ||
$test_url | string | Raw URL that will be run through redirect_canonical(). |
$expected | string | Expected string. |
$ticket | integer | Optional. Trac ticket number. |
$expected_doing_it_wrong | array | Array of class/function names expected to throw _doing_it_wrong() notices. |
public get_canonical ( string $test_url ) | ||
$test_url | string | Should be relative to the site "front", ie /category/uncategorized/ as opposed to http://example.com/category/uncategorized/ |
public $structure |