Skip to content

Commit 5e839d3

Browse files
committed
Update self-tests for custom tests
1 parent 353a419 commit 5e839d3

File tree

4 files changed

+7
-12
lines changed

4 files changed

+7
-12
lines changed

_tests/custom_tests/tests/CompatibilityTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ public function test_multiple_tags_and_multiple_plugins_with_multiple_tags() {
103103

104104
$output = qit( [
105105
'run:e2e',
106-
'automatewoo:test:self-test-multiple-test-tags,self-test-multiple-test-tags-another',
106+
'automatewoo',
107+
'self-test-multiple-test-tags,self-test-multiple-test-tags-another',
107108
'--plugin',
108109
'woocommerce:test:self-test-multiple-test-tags,self-test-multiple-test-tags-another',
109110
] );

_tests/custom_tests/tests/EnvTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ public function test_env_up_woocommerce_nightly_version() {
220220
'wp plugin get woocommerce',
221221
] );
222222

223-
$this->assertMatchesNormalizedSnapshot( $output );
223+
$this->assertStringContainsString( '-dev', $output );
224224
}
225225

226226
public function test_env_up_woocommerce_rc_version() {

_tests/custom_tests/tests/RunE2ETest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ public function test_tag_and_run_test() {
4646

4747
$output = qit( [
4848
'run:e2e',
49-
'automatewoo:test:self-test-tag-and-run',
49+
'automatewoo',
50+
'self-test-tag-and-run',
5051
'--plugin',
5152
'woocommerce:activate',
5253
] );
@@ -73,7 +74,8 @@ public function test_multiple_tags_and_run_tests() {
7374

7475
$output = qit( [
7576
'run:e2e',
76-
'automatewoo:test:self-test-multiple-test-tags,self-test-multiple-test-tags-another',
77+
'automatewoo',
78+
'self-test-multiple-test-tags,self-test-multiple-test-tags-another',
7779
'--plugin',
7880
'woocommerce:activate',
7981
] );

_tests/custom_tests/tests/__snapshots__/EnvTest__test_env_up_woocommerce_nightly_version__1.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)