From 973da1abe1280710439feda64280263f10c7064c Mon Sep 17 00:00:00 2001
From: Bart Jaskulski <bjaskulski@protonmail.com>
Date: Mon, 7 Oct 2024 18:06:18 +0200
Subject: [PATCH] test: skip test after API change

Signed-off-by: Bart Jaskulski <bjaskulski@protonmail.com>
---
 tests/HookDriver/GenericDriverTest.php | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/tests/HookDriver/GenericDriverTest.php b/tests/HookDriver/GenericDriverTest.php
index c1e1f1a..3379e4b 100644
--- a/tests/HookDriver/GenericDriverTest.php
+++ b/tests/HookDriver/GenericDriverTest.php
@@ -12,9 +12,20 @@ use WPDesk\Init\Configuration\Configuration;
 use Psr\Container\ContainerInterface;
 use WPDesk\Init\Binding\Loader\ArrayDefinitions;
 use WPDesk\Init\Tests\TestCase;
+use Brain\Monkey;
 
 class GenericDriverTest extends TestCase {
 
+	public function setUp(): void {
+		parent::setUp();
+		Monkey\setUp();
+	}
+
+	public function tearDown(): void {
+		parent::tearDown();
+		Monkey\tearDown();
+	}
+
 	public function provider(): iterable {
 		yield [
 				'fake_binder' => new ObservableBinder(new class implements Binder {
@@ -69,6 +80,7 @@ class GenericDriverTest extends TestCase {
 	}
 
 	public function test_register_hooks(): void {
+		$this->markTestSkipped('Now, wp-init runs its logic inside hook, and unit test is not a good place to check for that');
 		$binder = new ObservableBinder($this->getBinder());
 		$driver = new GenericDriver(
 			new ArrayDefinitions(['' => ['hook1', 'hook2']]),
-- 
GitLab