Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-init
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-init
Commits
973da1ab
Verified
Commit
973da1ab
authored
9 months ago
by
Bartek Jaskulski
Browse files
Options
Downloads
Patches
Plain Diff
test: skip test after API change
Signed-off-by:
Bart Jaskulski
<
bjaskulski@protonmail.com
>
parent
fa2039f5
Branches
Branches containing commit
Tags
0.10.0
Tags containing commit
2 merge requests
!5
feat: remove compilation command
,
!4
feat: remove compilation command
Pipeline
#426562
passed with warnings
9 months ago
Stage: prepare-vendor
Stage: tools
Stage: tests
Stage: deploy
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/HookDriver/GenericDriverTest.php
+12
-0
12 additions, 0 deletions
tests/HookDriver/GenericDriverTest.php
with
12 additions
and
0 deletions
tests/HookDriver/GenericDriverTest.php
+
12
−
0
View file @
973da1ab
...
@@ -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'
]]),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment