Skip to content

Commit fd89ec2

Browse files
committed
Fix ordered tests
1 parent 8b2a917 commit fd89ec2

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

tests/Base.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ abstract class Base extends TestCase
4949
'POST:/v1/mock/tests/general/enum:passed',
5050
];
5151

52+
protected const UPLOAD_RESPONSE = [
53+
'POST:/v1/mock/tests/general/upload:passed',
54+
];
55+
5256
protected const UPLOAD_RESPONSES = [
5357
'POST:/v1/mock/tests/general/upload:passed',
5458
'POST:/v1/mock/tests/general/upload:passed',

tests/Go112Test.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class Go112Test extends Base
2121
...Base::FOO_RESPONSES,
2222
...Base::BAR_RESPONSES,
2323
...Base::GENERAL_RESPONSES,
24+
...Base::UPLOAD_RESPONSE,
2425
...Base::DOWNLOAD_RESPONSES,
2526
...Base::EXCEPTION_RESPONSES,
2627
];

tests/WebNodeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class WebNodeTest extends Base
2525
...Base::FOO_RESPONSES,
2626
...Base::BAR_RESPONSES,
2727
...Base::GENERAL_RESPONSES,
28-
...Base::ENUM_RESPONSES,
2928
...Base::UPLOAD_RESPONSES,
29+
...Base::ENUM_RESPONSES,
3030
...Base::EXCEPTION_RESPONSES,
3131
...Base::REALTIME_RESPONSES,
3232
...Base::QUERY_HELPER_RESPONSES,

tests/languages/kotlin/Tests.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,6 @@ class ServiceTest {
7474
val result = general.redirect()
7575
writeToFile((result as Map<String, Any>)["result"] as String)
7676

77-
mock = general.enum(MockType.FIRST)
78-
writeToFile(mock.result)
79-
8077
try {
8178
mock = general.upload("string", 123, listOf("string in array"), InputFile.fromPath("../../resources/file.png"))
8279
writeToFile(mock.result)

0 commit comments

Comments
 (0)