Skip to content

Commit

Permalink
Fix tests for WP 6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinfodness committed Jul 19, 2024
1 parent 788e6ad commit aa17153
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/class-test-cursor.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function test_lifecycle(): void {
*
* @global wpdb $wpdb WordPress database abstraction object.
*/
public function test_curso_option_not_autoload(): void {
public function test_cursor_option_not_autoload(): void {
global $wpdb;

$option_name = 'test-cursor';
Expand All @@ -50,7 +50,7 @@ public function test_curso_option_not_autoload(): void {
// phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
$option_autoloaded = $wpdb->get_var( $wpdb->prepare( "SELECT autoload FROM $wpdb->options WHERE option_name = %s", $option_name_key ) );
$this->assertNotEmpty( $option_autoloaded );
$this->assertSame( 'no', $option_autoloaded );
$this->assertSame( 'off', $option_autoloaded );

$this->assertEquals( 1234, $cursor->get() );
$cursor->reset();
Expand Down

0 comments on commit aa17153

Please sign in to comment.