Skip to content
Snippets Groups Projects

feat: remove compilation command

Closed Bartek Jaskulski requested to merge v0.10 into main
1 file
+ 12
0
Compare changes
  • Side-by-side
  • Inline
@@ -12,9 +12,20 @@ use WPDesk\Init\Configuration\Configuration;
@@ -12,9 +12,20 @@ use WPDesk\Init\Configuration\Configuration;
use Psr\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use WPDesk\Init\Binding\Loader\ArrayDefinitions;
use WPDesk\Init\Binding\Loader\ArrayDefinitions;
use WPDesk\Init\Tests\TestCase;
use WPDesk\Init\Tests\TestCase;
 
use Brain\Monkey;
class GenericDriverTest extends TestCase {
class GenericDriverTest extends TestCase {
 
public function setUp(): void {
 
parent::setUp();
 
Monkey\setUp();
 
}
 
 
public function tearDown(): void {
 
parent::tearDown();
 
Monkey\tearDown();
 
}
 
public function provider(): iterable {
public function provider(): iterable {
yield [
yield [
'fake_binder' => new ObservableBinder(new class implements Binder {
'fake_binder' => new ObservableBinder(new class implements Binder {
@@ -69,6 +80,7 @@ class GenericDriverTest extends TestCase {
@@ -69,6 +80,7 @@ class GenericDriverTest extends TestCase {
}
}
public function test_register_hooks(): void {
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());
$binder = new ObservableBinder($this->getBinder());
$driver = new GenericDriver(
$driver = new GenericDriver(
new ArrayDefinitions(['' => ['hook1', 'hook2']]),
new ArrayDefinitions(['' => ['hook1', 'hook2']]),
Loading