Tests: Rename some files and classes in phpunit/tests/post/
per the naming conventions.
https://make.wordpress.org/core/handbook/testing/automated-testing/writing-phpunit-tests/#naming-and-organization Follow-up to [47780]. See #51344. git-svn-id: https://develop.svn.wordpress.org/trunk@49327 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
548d03026b
commit
986becfd4d
@ -3,7 +3,7 @@
|
||||
/**
|
||||
* @group post
|
||||
*/
|
||||
class Tests_Post_getPageUri extends WP_UnitTestCase {
|
||||
class Tests_Post_GetPageUri extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* @ticket 22883
|
||||
|
@ -4,7 +4,7 @@
|
||||
* @group post
|
||||
*/
|
||||
|
||||
class Tests_Post_getPages extends WP_UnitTestCase {
|
||||
class Tests_Post_GetPages extends WP_UnitTestCase {
|
||||
function setUp() {
|
||||
parent::setUp();
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
/**
|
||||
* @group post
|
||||
*/
|
||||
class Tests_Get_Post_Type_Labels extends WP_UnitTestCase {
|
||||
class Tests_Post_GetPostTypeLabels extends WP_UnitTestCase {
|
||||
public function test_returns_an_object() {
|
||||
$this->assertInternalType(
|
||||
'object',
|
||||
|
@ -3,7 +3,7 @@
|
||||
* @group post
|
||||
* @group menu
|
||||
*/
|
||||
class Test_Nav_Menus extends WP_UnitTestCase {
|
||||
class Tests_Post_Nav_Menu extends WP_UnitTestCase {
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
@ -4,7 +4,7 @@
|
||||
* @group post
|
||||
* @group ping
|
||||
*/
|
||||
class Tests_Ping_and_Trackback_Sending extends WP_UnitTestCase {
|
||||
class Tests_Post_Pings extends WP_UnitTestCase {
|
||||
|
||||
public function test_returns_to_ping_sites_from_post_id() {
|
||||
$post_id = self::factory()->post->create(
|
||||
|
@ -3,7 +3,7 @@
|
||||
/**
|
||||
* @group post
|
||||
*/
|
||||
class Tests_Post_WpGetPostParentId extends WP_UnitTestCase {
|
||||
class Tests_Post_wpGetPostParentId extends WP_UnitTestCase {
|
||||
/**
|
||||
* Parent post ID.
|
||||
*
|
||||
|
@ -3,7 +3,7 @@
|
||||
/**
|
||||
* @group post
|
||||
*/
|
||||
class Tests_WPInsertPost extends WP_UnitTestCase {
|
||||
class Tests_Post_wpInsertPost extends WP_UnitTestCase {
|
||||
|
||||
protected static $user_ids = array(
|
||||
'administrator' => null,
|
||||
|
@ -3,7 +3,7 @@
|
||||
/**
|
||||
* @group post
|
||||
*/
|
||||
class Tests_List_Pages extends WP_UnitTestCase {
|
||||
class Tests_Post_wpListPages extends WP_UnitTestCase {
|
||||
/**
|
||||
* Editor user ID.
|
||||
*
|
@ -3,7 +3,7 @@
|
||||
/**
|
||||
* @group post
|
||||
*/
|
||||
class Tests_Post_WpPost extends WP_UnitTestCase {
|
||||
class Tests_Post_wpPost extends WP_UnitTestCase {
|
||||
protected static $post_id;
|
||||
|
||||
public static function wpSetUpBeforeClass( $factory ) {
|
||||
|
@ -3,7 +3,7 @@
|
||||
/**
|
||||
* @group post
|
||||
*/
|
||||
class Tests_WP_Post_Type extends WP_UnitTestCase {
|
||||
class Tests_Post_WP_Post_Type extends WP_UnitTestCase {
|
||||
public function test_instances() {
|
||||
global $wp_post_types;
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
/**
|
||||
* @group post
|
||||
*/
|
||||
class Tests_WPPublishPost extends WP_UnitTestCase {
|
||||
class Tests_Post_wpPublishPost extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* Auto-draft post ID.
|
@ -3,7 +3,7 @@
|
||||
/**
|
||||
* @group post
|
||||
*/
|
||||
class Tests_Post_WpUniquePostSlug extends WP_UnitTestCase {
|
||||
class Tests_Post_wpUniquePostSlug extends WP_UnitTestCase {
|
||||
protected $post_ids = array();
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user