File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 11language : php
22
33php :
4+ - 7.1
45 - 7.2
56 - 7.3
67
Original file line number Diff line number Diff line change 1616 }
1717 ],
1818 "require" : {
19- "php" : " ^7.2 " ,
20- "illuminate/database" : " ~5.8.0" ,
21- "illuminate/http" : " ~5.8.0" ,
22- "illuminate/support" : " ~5.8.0"
19+ "php" : " ^7.1 " ,
20+ "illuminate/database" : " ~5.5.43|~5.6.0|~5.7.0|~5. 8.0" ,
21+ "illuminate/http" : " ~5.5.43|~5.6.0|~5.7.0|~5. 8.0" ,
22+ "illuminate/support" : " ~5.5.43|~5.6.0|~5.7.0|~5. 8.0"
2323 },
2424 "require-dev" : {
25- "phpunit/phpunit" : " ^7.5 |^8.0" ,
26- "orchestra/testbench" : " ~3.8.0"
25+ "phpunit/phpunit" : " ^6.0|^7.0 |^8.0" ,
26+ "orchestra/testbench" : " ~3.5.0|~3.6.0|~3.7.0|~3. 8.0"
2727 },
2828 "autoload" : {
2929 "psr-4" : {
Original file line number Diff line number Diff line change 55use Illuminate \Support \Facades \DB ;
66use Illuminate \Foundation \Application ;
77use Illuminate \Database \Schema \Blueprint ;
8+ use Illuminate \Support \Str ;
89use Orchestra \Testbench \TestCase as Orchestra ;
910use Spatie \QueryBuilder \QueryBuilderServiceProvider ;
1011
@@ -84,6 +85,7 @@ protected function assertQueryLogContains(string $partialSql)
8485 {
8586 $ queryLog = collect (DB ::getQueryLog ())->pluck ('query ' )->implode ('| ' );
8687
87- $ this ->assertStringContainsString ($ partialSql , $ queryLog );
88+ // Could've used `assertStringContainsString` but we want to support L5.5 with PHPUnit 6.0
89+ $ this ->assertTrue (Str::contains ($ queryLog , $ partialSql ));
8890 }
8991}
You can’t perform that action at this time.
0 commit comments