File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 22
33namespace YlsIdeas \CockroachDb \Tests \Database ;
44
5+ use Illuminate \Foundation \Application ;
56use PHPUnit \Framework \TestCase ;
67use YlsIdeas \CockroachDb \CockroachDbConnector ;
78
@@ -20,7 +21,11 @@ public function test_dsn_params_with_cluster()
2021 ],
2122 );
2223
23- $ this ->assertStringContainsString ("dbname='cluster-1234.defaultdb' " , $ dsnConfig );
24+ if (version_compare (Application::VERSION , '8.81.0 ' , '>= ' )) {
25+ $ this ->assertStringContainsString ('dbname= \'cluster-1234.defaultdb \'' , $ dsnConfig );
26+ } else {
27+ $ this ->assertStringContainsString ('dbname=cluster-1234.defaultdb ' , $ dsnConfig );
28+ }
2429 }
2530
2631 public function test_dsn_params_without_cluster ()
@@ -36,7 +41,11 @@ public function test_dsn_params_without_cluster()
3641 ],
3742 );
3843
39- $ this ->assertStringContainsString ("dbname='defaultdb' " , $ dsnConfig );
44+ if (version_compare (Application::VERSION , '8.81.0 ' , '>= ' )) {
45+ $ this ->assertStringContainsString ('dbname= \'defaultdb \'' , $ dsnConfig );
46+ } else {
47+ $ this ->assertStringContainsString ('dbname=defaultdb ' , $ dsnConfig );
48+ }
4049 }
4150
4251 protected function getConnector ()
You can’t perform that action at this time.
0 commit comments