mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Note: This is enforced by WPCS 3.0.0. Follow-up to [56536]. Props jrf. See #59161, #58831. git-svn-id: https://develop.svn.wordpress.org/trunk@56547 602fd350-edb4-49c9-b593-d223f7449a82
18 lines
445 B
PHP
18 lines
445 B
PHP
<?php
|
|
/**
|
|
* @group link
|
|
* @covers ::get_post_permalink
|
|
*/
|
|
class Tests_Link_GetPostPermalink extends WP_UnitTestCase {
|
|
|
|
public function test_get_post_permalink_should_return_string_on_success() {
|
|
$post = self::factory()->post->create();
|
|
|
|
$this->assertIsString( get_post_permalink( $post ) );
|
|
}
|
|
|
|
public function test_get_post_permalink_should_return_false_for_non_existing_post() {
|
|
$this->assertFalse( get_post_permalink( -1 ) );
|
|
}
|
|
}
|