1515use Yiisoft \Db \Oracle \Column \ColumnBuilder ;
1616use Yiisoft \Db \Oracle \Column \JsonColumn ;
1717use Yiisoft \Db \Oracle \Tests \Provider \ColumnProvider ;
18+ use Yiisoft \Db \Oracle \Tests \Support \Fixture \FixtureDump ;
1819use Yiisoft \Db \Oracle \Tests \Support \IntegrationTestTrait ;
1920use Yiisoft \Db \Oracle \Tests \Support \TestConnection ;
2021use Yiisoft \Db \Query \Query ;
@@ -41,10 +42,7 @@ public function testQueryWithTypecasting(): void
4142 $ db = $ this ->getSharedConnection ();
4243 $ isOldVersion = version_compare (TestConnection::getServerVersion (), '21 ' , '< ' );
4344
44- $ this ->loadFixture (
45- __DIR__ . '/Support/Fixture/ '
46- . ($ isOldVersion ? 'oci.sql ' : 'oci21.sql ' ),
47- );
45+ $ this ->loadFixture ($ isOldVersion ? FixtureDump::DEFAULT : FixtureDump::OCI21 );
4846
4947 $ this ->insertTypeValues ($ db );
5048
@@ -66,10 +64,7 @@ public function testCommandWithPhpTypecasting(): void
6664 $ db = $ this ->getSharedConnection ();
6765 $ isOldVersion = version_compare (TestConnection::getServerVersion (), '21 ' , '< ' );
6866
69- $ this ->loadFixture (
70- __DIR__ . '/Support/Fixture/ '
71- . ($ isOldVersion ? 'oci.sql ' : 'oci21.sql ' ),
72- );
67+ $ this ->loadFixture ($ isOldVersion ? FixtureDump::DEFAULT : FixtureDump::OCI21 );
7368
7469 $ this ->insertTypeValues ($ db );
7570
@@ -137,10 +132,7 @@ public function testPhpTypecast(): void
137132 $ db = $ this ->getSharedConnection ();
138133 $ isOldVersion = version_compare (TestConnection::getServerVersion (), '21 ' , '< ' );
139134
140- $ this ->loadFixture (
141- __DIR__ . '/Support/Fixture/ '
142- . ($ isOldVersion ? 'oci.sql ' : 'oci21.sql ' ),
143- );
135+ $ this ->loadFixture ($ isOldVersion ? FixtureDump::DEFAULT : FixtureDump::OCI21 );
144136
145137 parent ::testPhpTypecast ();
146138 }
@@ -150,10 +142,7 @@ public function testColumnInstance(): void
150142 $ db = $ this ->getSharedConnection ();
151143 $ isOldVersion = version_compare (TestConnection::getServerVersion (), '21 ' , '< ' );
152144
153- $ this ->loadFixture (
154- __DIR__ . '/Support/Fixture/ '
155- . ($ isOldVersion ? 'oci.sql ' : 'oci21.sql ' ),
156- );
145+ $ this ->loadFixture ($ isOldVersion ? FixtureDump::DEFAULT : FixtureDump::OCI21 );
157146
158147 $ schema = $ db ->getSchema ();
159148 $ tableSchema = $ schema ->getTableSchema ('type ' );
0 commit comments