@@ -66,12 +66,12 @@ public function it_sends_a_simple_request_with_no_response()
66
66
67
67
Http::assertSent (function ($ request ) {
68
68
return $ request ['blocks ' ][0 ] === [
69
- 'id ' => 'real_response_id ' ,
70
- 'hash ' => 'e99681f5450cbaf3774adc5eb74d637f ' ,
71
- 'language ' => 'php ' ,
72
- 'theme ' => 'material-theme-palenight ' ,
73
- 'code ' => 'echo "hello world"; ' ,
74
- ];
69
+ 'id ' => 'real_response_id ' ,
70
+ 'hash ' => 'e99681f5450cbaf3774adc5eb74d637f ' ,
71
+ 'language ' => 'php ' ,
72
+ 'theme ' => 'material-theme-palenight ' ,
73
+ 'code ' => 'echo "hello world"; ' ,
74
+ ];
75
75
});
76
76
}
77
77
@@ -181,6 +181,14 @@ public function two_components_work()
181
181
<code class="torchlight2" style="background-color: #222222;">response 2</code>
182
182
EOT ;
183
183
184
- $ this ->assertEquals ($ expected , rtrim ($ response ->content ()));
184
+ // See https://github.com/laravel/framework/pull/35874/files for reasoning.
185
+ $ expected = str_replace ("\n" , '' , $ expected );
186
+
187
+ // Covering bugfixes from earlier versions of Laravel
188
+ // https://github.com/laravel/framework/pull/35874/files.
189
+ $ actual = rtrim (str_replace ("\n" , '' , $ response ->content ()));
190
+ $ actual = str_replace ('</code> <code ' , '</code><code ' , $ actual );
191
+
192
+ $ this ->assertEquals ($ expected , $ actual );
185
193
}
186
194
}
0 commit comments