Files
wordpress-develop/tests/phpunit/tests/post/getPageByTitle.php
T
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

21 lines
388 B
PHP

<?php
/**
* @group post
*
* @covers ::get_page_by_title
*/
class Tests_Post_GetPageByTitle extends WP_UnitTestCase {
/**
* Tests that `get_page_by_title()` has been deprecated.
*
* @ticket 57041
*
* @expectedDeprecated get_page_by_title
*/
public function test_get_page_by_title_should_be_deprecated() {
$this->assertNull( get_page_by_title( '#57041 Page' ) );
}
}