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;
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 {
@@ -22,7 +33,7 @@ class GenericDriverTest extends TestCase {
public function bind( Definition $def ): void {
}
}),
function ( $binder ) {
function ( $binder ): void {
$this->assertTrue( $binder->is_bound() );
}
];
@@ -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']]),
Loading