mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Tests: Correct the @group annotation for _wp_mysql_week() tests.
Includes updating the data provider name for consistency. Follow-up to [57207]. See #59931. git-svn-id: https://develop.svn.wordpress.org/trunk@57208 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Tests for the _wp_mysql_week function.
|
||||
* Tests for the _wp_mysql_week() function.
|
||||
*
|
||||
* @group Functons.php
|
||||
* @group functions
|
||||
*
|
||||
* @covers ::_wp_mysql_week
|
||||
*/
|
||||
@@ -12,7 +12,7 @@ class Tests_Functons_WpMysqlWeek extends WP_UnitTestCase {
|
||||
/**
|
||||
* @ticket 59931
|
||||
*
|
||||
* @dataProvider data_test_wp_mysql_week
|
||||
* @dataProvider data_wp_mysql_week
|
||||
*/
|
||||
public function test_wp_mysql_week( $date, $start_of_week, $expected_sql ) {
|
||||
|
||||
@@ -29,7 +29,7 @@ class Tests_Functons_WpMysqlWeek extends WP_UnitTestCase {
|
||||
/**
|
||||
* @return array[]
|
||||
*/
|
||||
public function data_test_wp_mysql_week() {
|
||||
public function data_wp_mysql_week() {
|
||||
return array(
|
||||
array( '1969-12-25', 0, 'WEEK( col_name, 0 )' ),
|
||||
array( '1969-12-25', 1, 'WEEK( col_name, 1 )' ),
|
||||
Reference in New Issue
Block a user