File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace YlsIdeas \CockroachDb \Tests \Database ;
4
4
5
+ use Illuminate \Foundation \Application ;
5
6
use PHPUnit \Framework \TestCase ;
6
7
use YlsIdeas \CockroachDb \CockroachDbConnector ;
7
8
@@ -20,7 +21,11 @@ public function test_dsn_params_with_cluster()
20
21
],
21
22
);
22
23
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
+ }
24
29
}
25
30
26
31
public function test_dsn_params_without_cluster ()
@@ -36,7 +41,11 @@ public function test_dsn_params_without_cluster()
36
41
],
37
42
);
38
43
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
+ }
40
49
}
41
50
42
51
protected function getConnector ()
You can’t perform that action at this time.
0 commit comments