Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutoshgautams committed Sep 18, 2024
2 parents de5ba5a + ae45158 commit 0a36599
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 27 deletions.
5 changes: 5 additions & 0 deletions .changeset/little-cobras-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wpengine/wp-graphql-content-blocks": patch
---

tests: fix PHP deprecation notices
2 changes: 1 addition & 1 deletion tests/unit/BlockSupportsAnchorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ final class BlockSupportsAnchorTest extends PluginTestCase {
public function setUp(): void {
parent::setUp();

$settings = get_option( 'graphql_general_settings' );
$settings = get_option( 'graphql_general_settings', [] );
$settings['public_introspection_enabled'] = 'on';
update_option( 'graphql_general_settings', $settings );

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/EditorBlockInterfaceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ final class EditorBlockInterfaceTest extends PluginTestCase {
public function setUp(): void {
parent::setUp();

$settings = get_option( 'graphql_general_settings' );
$settings = get_option( 'graphql_general_settings', [] );
$settings['public_introspection_enabled'] = 'on';
update_option( 'graphql_general_settings', $settings );
}
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/PostTypeBlockInterfaceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ final class PostTypeBlockInterfaceTest extends PluginTestCase {
public function setUp(): void {
parent::setUp();

$settings = get_option( 'graphql_general_settings' );
$settings = get_option( 'graphql_general_settings', [] );
$settings['public_introspection_enabled'] = 'on';
update_option( 'graphql_general_settings', $settings );

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/RegistryTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ final class RegistryTestCase extends PluginTestCase {
public function setUp(): void {
parent::setUp();

$settings = get_option( 'graphql_general_settings' );
$settings = get_option( 'graphql_general_settings', [] );
$settings['public_introspection_enabled'] = 'on';
update_option( 'graphql_general_settings', $settings );

Expand Down
22 changes: 0 additions & 22 deletions tests/unit/UpdateCalbacksTest.php

This file was deleted.

2 changes: 1 addition & 1 deletion tests/unit/UpdateCallbacksTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Class TestUpdateCallbacks
* Class UpdateCallbacksTest
*/
class UpdateCallbacksTest extends WP_UnitTestCase {
public function test_pre_set_site_transient_update_plugins_has_filter_added(): void {
Expand Down

0 comments on commit 0a36599

Please sign in to comment.