File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
src/Testing/Responses/Fixtures/Images Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ final class CreateResponseFixture
9
9
'data ' => [
10
10
[
11
11
'url ' => 'https://openai.com/fake-image.png ' ,
12
- 'b64_json ' => 'fake-b64_json ' ,
13
12
],
14
13
],
15
14
];
Original file line number Diff line number Diff line change 66
66
'data ' => [
67
67
[
68
68
'url ' => 'https://openai.com/new-image.png ' ,
69
+ 'revised_prompt ' => 'the revised prompt ' ,
69
70
],
70
71
],
71
72
]);
72
73
73
74
expect ($ response ['data ' ][0 ])
74
- ->url ->toBe ('https://openai.com/new-image.png ' );
75
+ ->url ->toBe ('https://openai.com/new-image.png ' )
76
+ ->revised_prompt ->toBe ('the revised prompt ' );
77
+ });
78
+
79
+ test ('fake with override of b64_json ' , function () {
80
+ $ response = CreateResponse::fake ([
81
+ 'data ' => [
82
+ [
83
+ 'url ' => '' ,
84
+ 'b64_json ' => 'some-fake-b64-string ' ,
85
+ ],
86
+ ],
87
+ ]);
88
+
89
+ expect ($ response ['data ' ][0 ])
90
+ ->b64_json ->toBe ('some-fake-b64-string ' );
75
91
});
You can’t perform that action at this time.
0 commit comments