Skip to content

Commit 716d534

Browse files
committed
Fixed namespaces for test classes. Added missing tests for the database entity.
1 parent c3302a6 commit 716d534

19 files changed

+165
-26
lines changed

plugins/wpgraphql-logging/src/Logger/Database/LogsRepository.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ class LogsRepository {
2222
* @return array<\WPGraphQL\Logging\Logger\Database\DatabaseEntity>
2323
*/
2424
public function get_logs(array $args = []): array {
25-
global $wpdb;
2625
$defaults = [
2726
'number' => 100,
2827
'offset' => 0,

plugins/wpgraphql-logging/tests/wpunit/Admin/Settings/ConfigurationHelperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Tests\WPUnit\Admin\Settings;
5+
namespace WPGraphQL\Logging\Tests\Admin\Settings;
66

77
use WPGraphQL\Logging\Admin\Settings\ConfigurationHelper;
88
use Codeception\TestCase\WPTestCase;

plugins/wpgraphql-logging/tests/wpunit/Admin/Settings/Fields/Field/CheckboxFieldTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace WPGraphQL\Logging\wpunit\Admin\Settings\Fields\Field;
5+
namespace WPGraphQL\Logging\Tests\Admin\Settings\Fields\Field;
66

77
use WPGraphQL\Logging\Admin\Settings\Fields\Field\CheckboxField;
88
use WPGraphQL\Logging\Admin\Settings\Fields\SettingsFieldInterface;

plugins/wpgraphql-logging/tests/wpunit/Admin/Settings/Fields/Field/SelectFieldTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace WPGraphQL\Logging\wpunit\Admin\Settings\Fields\Field;
5+
namespace WPGraphQL\Logging\Tests\Admin\Settings\Fields\Field;
66

77
use WPGraphQL\Logging\Admin\Settings\Fields\Field\SelectField;
88
use WPGraphQL\Logging\Admin\Settings\Fields\SettingsFieldInterface;

plugins/wpgraphql-logging/tests/wpunit/Admin/Settings/Fields/Field/TextInputFieldTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace WPGraphQL\Logging\wpunit\Admin\Settings\Fields\Field;
5+
namespace WPGraphQL\Logging\Tests\Admin\Settings\Fields;
66

77
use WPGraphQL\Logging\Admin\Settings\Fields\Field\TextInputField;
88
use WPGraphQL\Logging\Admin\Settings\Fields\SettingsFieldInterface;

plugins/wpgraphql-logging/tests/wpunit/Admin/Settings/Fields/Field/TextIntegerFieldTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace WPGraphQL\Logging\wpunit\Admin\Settings\Fields\Field;
5+
namespace WPGraphQL\Logging\Tests\Admin\Settings\Fields;
66

77
use WPGraphQL\Logging\Admin\Settings\Fields\Field\TextIntegerField;
88
use WPGraphQL\Logging\Admin\Settings\Fields\SettingsFieldInterface;

plugins/wpgraphql-logging/tests/wpunit/Admin/Settings/Fields/SettingsFieldCollectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Tests\WPUnit\Admin\Settings\Fields;
5+
namespace WPGraphQL\Logging\Tests\Admin\Settings\Fields;
66

77
use WPGraphQL\Logging\Admin\Settings\Fields\SettingsFieldCollection;
88
use WPGraphQL\Logging\Admin\Settings\Fields\SettingsFieldInterface;

plugins/wpgraphql-logging/tests/wpunit/Admin/Settings/Menu/MenuPageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Tests\WPUnit\Admin\Settings\Menu;
5+
namespace WPGraphQL\Logging\Tests\Admin\Settings\Menu;
66

77
use WPGraphQL\Logging\Admin\SettingsPage;
88
use WPGraphQL\Logging\Admin\Settings\Menu\MenuPage;

plugins/wpgraphql-logging/tests/wpunit/Admin/Settings/SettingsFormManagerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace WPGraphQL\Logging\Tests\WPUnit\Admin\Settings;
5+
namespace WPGraphQL\Logging\Tests\Admin\Settings;
66

77
use Codeception\TestCase\WPTestCase;
88
use WPGraphQL\Logging\Admin\Settings\ConfigurationHelper;

plugins/wpgraphql-logging/tests/wpunit/Admin/SettingsPageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace WPGraphQL\Logging\wpunit\Admin;
5+
namespace WPGraphQL\Logging\Tests\Admin;
66

77
use lucatume\WPBrowser\TestCase\WPTestCase;
88
use WPGraphQL\Logging\Admin\SettingsPage;

0 commit comments

Comments
 (0)