wordpress-develop/tests/phpunit/tests/link/getPostPermalink.php
Sergey Biryukov d790be16dc Coding Standards: Remove superfluous blank lines at the end of various classes.
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
2023-09-08 09:30:38 +00:00

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 ) );
}
}