Skip to content

Commit 47bb318

Browse files
committed
Revert test as typo with changing signature and not needed.
1 parent 9b5ee54 commit 47bb318

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

plugins/wpgraphql-logging/src/Admin/ViewLogsPage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ protected function render_view_page(): void {
299299
*
300300
* @return \WPGraphQL\Logging\Logger\Api\LogServiceInterface The log service instance.
301301
*/
302-
public function get_log_service(): LogServiceInterface {
302+
protected function get_log_service(): LogServiceInterface {
303303
return LogStoreService::get_log_service();
304304
}
305305
}

plugins/wpgraphql-logging/tests/wpunit/Admin/View/ViewLogsPageTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,4 @@ public function test_get_redirect_url_constructs_correct_url(): void {
214214
$url
215215
);
216216
}
217-
218-
public function test_get_log_service_returns_log_service_instance(): void {
219-
$this->set_as_admin();
220-
$instance = ViewLogsPage::init();
221-
$log_service = $instance->get_log_service();
222-
$this->assertInstanceOf(LogServiceInterface::class, $log_service);
223-
}
224217
}

0 commit comments

Comments
 (0)