Skip to content

Commit 0b29bcf

Browse files
committed
Use dedicated test file
1 parent e35dd05 commit 0b29bcf

File tree

2 files changed

+69
-1
lines changed

2 files changed

+69
-1
lines changed

tests/UnifiedSpecTests/UnifiedTestRunnerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class UnifiedTestRunnerTest extends FunctionalTestCase
88
{
99
public function testEntityMapObserver(): void
1010
{
11-
$test = UnifiedTestCase::fromFile(__DIR__ . '/crud/find.json');
11+
$test = UnifiedTestCase::fromFile(__DIR__ . '/runner/entity-map-observer.json');
1212
$calls = 0;
1313

1414
$runner = new UnifiedTestRunner(static::getUri());
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"description": "find",
3+
"schemaVersion": "1.0",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0",
8+
"useMultipleMongoses": true,
9+
"observeEvents": [
10+
"commandStartedEvent"
11+
]
12+
}
13+
},
14+
{
15+
"database": {
16+
"id": "database0",
17+
"client": "client0",
18+
"databaseName": "runner-tests"
19+
}
20+
},
21+
{
22+
"collection": {
23+
"id": "collection0",
24+
"database": "database0",
25+
"collectionName": "coll0"
26+
}
27+
}
28+
],
29+
"initialData": [
30+
{
31+
"collectionName": "coll0",
32+
"databaseName": "runner-tests",
33+
"documents": []
34+
}
35+
],
36+
"tests": [
37+
{
38+
"description": "basic find",
39+
"operations": [
40+
{
41+
"name": "find",
42+
"arguments": {
43+
"filter": {}
44+
},
45+
"object": "collection0",
46+
"expectResult": []
47+
}
48+
],
49+
"expectEvents": [
50+
{
51+
"client": "client0",
52+
"events": [
53+
{
54+
"commandStartedEvent": {
55+
"command": {
56+
"find": "coll0",
57+
"filter": {}
58+
},
59+
"commandName": "find",
60+
"databaseName": "runner-tests"
61+
}
62+
}
63+
]
64+
}
65+
]
66+
}
67+
]
68+
}

0 commit comments

Comments
 (0)