generated from yii2-extensions/template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add Oracle
database support with corresponding test classes for improved functionality.
#62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
c3b3943
feat: add `Oracle` database support with corresponding test classes f…
terabytesoftw f4fd28f
fix: update `Oracle` database image to `gvenzl/oracle-free` for impro…
terabytesoftw 4084c3e
fix: update PHPUnit group from `oracle` to `oci` for consistency in t…
terabytesoftw 8723e32
fix: update `DSN` in `Oracle` test classes for compatibility with new…
terabytesoftw dca0a39
fix: enhance XML attribute handling by converting values to strings f…
terabytesoftw faaeca5
Apply fixes from StyleCI
StyleCIBot 7093bf6
fix: adjust column type for `name` in `tree` table to support `oci` d…
terabytesoftw 05bd238
Merge branch 'feat-mini-6' of github-principal:yii2-extensions/nested…
terabytesoftw 7868c49
Apply fixes from StyleCI
StyleCIBot 0343129
fix: replace custom string conversion with direct casting for XML att…
terabytesoftw 9f2f248
fix: update database type in `Oracle` workflow from 'oracle' to 'oci'…
terabytesoftw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'README.md' | ||
- 'CHANGELOG.md' | ||
- '.gitignore' | ||
- '.gitattributes' | ||
|
||
push: | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'README.md' | ||
- 'CHANGELOG.md' | ||
- '.gitignore' | ||
- '.gitattributes' | ||
|
||
name: build-oracle | ||
|
||
jobs: | ||
oracle: | ||
name: Oracle tests. | ||
uses: php-forge/actions/.github/workflows/phpunit-database.yml@main | ||
secrets: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
with: | ||
concurrency-group: oracle-${{ github.ref }} | ||
database-env: | | ||
{ | ||
"ORACLE_DATABASE": "yiitest", | ||
"ORACLE_PASSWORD": "root" | ||
} | ||
database-health-cmd: "healthcheck.sh" | ||
database-health-retries: 10 | ||
database-image: gvenzl/oracle-free | ||
database-port: 1521 | ||
database-type: oci | ||
database-versions: '["23"]' | ||
enable-concurrency: true | ||
extensions: pdo, pdo_oci | ||
os: '["ubuntu-latest"]' | ||
php-version: '["8.4"]' | ||
phpunit-group: oci |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace yii2\extensions\nestedsets\tests\oracle; | ||
|
||
use PHPUnit\Framework\Attributes\Group; | ||
use yii2\extensions\nestedsets\tests\base\AbstractCacheManagement; | ||
|
||
#[Group('oci')] | ||
final class CacheManagementTest extends AbstractCacheManagement | ||
{ | ||
protected string $driverName = 'oci'; | ||
protected string|null $dsn = 'oci:dbname=localhost/FREEPDB1;charset=AL32UTF8;'; | ||
protected string $password = 'root'; | ||
protected string $username = 'system'; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace yii2\extensions\nestedsets\tests\oracle; | ||
|
||
use PHPUnit\Framework\Attributes\Group; | ||
use yii2\extensions\nestedsets\tests\base\AbstractExceptionHandling; | ||
|
||
#[Group('oci')] | ||
final class ExceptionHandlingTest extends AbstractExceptionHandling | ||
{ | ||
protected string $driverName = 'oci'; | ||
protected string|null $dsn = 'oci:dbname=localhost/FREEPDB1;charset=AL32UTF8;'; | ||
protected string $password = 'root'; | ||
protected string $username = 'system'; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace yii2\extensions\nestedsets\tests\oracle; | ||
|
||
use PHPUnit\Framework\Attributes\Group; | ||
use yii2\extensions\nestedsets\tests\base\AbstractExtensibility; | ||
|
||
#[Group('oci')] | ||
terabytesoftw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
final class ExtensibilityTest extends AbstractExtensibility | ||
{ | ||
protected string $driverName = 'oci'; | ||
protected string|null $dsn = 'oci:dbname=localhost/FREEPDB1;charset=AL32UTF8;'; | ||
protected string $password = 'root'; | ||
protected string $username = 'system'; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace yii2\extensions\nestedsets\tests\oracle; | ||
|
||
use PHPUnit\Framework\Attributes\Group; | ||
use yii2\extensions\nestedsets\tests\base\AbstractNodeAppend; | ||
|
||
#[Group('oci')] | ||
final class NodeAppendTest extends AbstractNodeAppend | ||
{ | ||
protected string $driverName = 'oci'; | ||
protected string|null $dsn = 'oci:dbname=localhost/FREEPDB1;charset=AL32UTF8;'; | ||
protected string $password = 'root'; | ||
protected string $username = 'system'; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace yii2\extensions\nestedsets\tests\oracle; | ||
|
||
use PHPUnit\Framework\Attributes\Group; | ||
use yii2\extensions\nestedsets\tests\base\AbstractNodeDelete; | ||
|
||
#[Group('oci')] | ||
final class NodeDeleteTest extends AbstractNodeDelete | ||
{ | ||
protected string $driverName = 'oci'; | ||
protected string|null $dsn = 'oci:dbname=localhost/FREEPDB1;charset=AL32UTF8;'; | ||
protected string $password = 'root'; | ||
protected string $username = 'system'; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace yii2\extensions\nestedsets\tests\oracle; | ||
|
||
use PHPUnit\Framework\Attributes\Group; | ||
use yii2\extensions\nestedsets\tests\base\AbstractNodeInsert; | ||
|
||
#[Group('oci')] | ||
final class NodeInsertTest extends AbstractNodeInsert | ||
{ | ||
protected string $driverName = 'oci'; | ||
protected string|null $dsn = 'oci:dbname=localhost/FREEPDB1;charset=AL32UTF8;'; | ||
protected string $password = 'root'; | ||
protected string $username = 'system'; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace yii2\extensions\nestedsets\tests\oracle; | ||
|
||
use PHPUnit\Framework\Attributes\Group; | ||
use yii2\extensions\nestedsets\tests\base\AbstractNodePrepend; | ||
|
||
#[Group('oci')] | ||
final class NodePrependTest extends AbstractNodePrepend | ||
{ | ||
protected string $driverName = 'oci'; | ||
protected string|null $dsn = 'oci:dbname=localhost/FREEPDB1;charset=AL32UTF8;'; | ||
protected string $password = 'root'; | ||
protected string $username = 'system'; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace yii2\extensions\nestedsets\tests\oracle; | ||
|
||
use PHPUnit\Framework\Attributes\Group; | ||
use yii2\extensions\nestedsets\tests\base\AbstractNodeState; | ||
|
||
#[Group('oci')] | ||
final class NodeStateTest extends AbstractNodeState | ||
{ | ||
protected string $driverName = 'oci'; | ||
protected string|null $dsn = 'oci:dbname=localhost/FREEPDB1;charset=AL32UTF8;'; | ||
protected string $password = 'root'; | ||
protected string $username = 'system'; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace yii2\extensions\nestedsets\tests\oracle; | ||
|
||
use PHPUnit\Framework\Attributes\Group; | ||
use yii2\extensions\nestedsets\tests\base\AbstractQueryBehavior; | ||
|
||
#[Group('oci')] | ||
final class QueryBehaviorTest extends AbstractQueryBehavior | ||
{ | ||
protected string $driverName = 'oci'; | ||
protected string|null $dsn = 'oci:dbname=localhost/FREEPDB1;charset=AL32UTF8;'; | ||
protected string $password = 'root'; | ||
protected string $username = 'system'; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace yii2\extensions\nestedsets\tests\oracle; | ||
|
||
use PHPUnit\Framework\Attributes\Group; | ||
use yii2\extensions\nestedsets\tests\base\AbstractTreeTraversal; | ||
|
||
#[Group('oci')] | ||
final class TreeTraversalTest extends AbstractTreeTraversal | ||
{ | ||
protected string $driverName = 'oci'; | ||
protected string|null $dsn = 'oci:dbname=localhost/FREEPDB1;charset=AL32UTF8;'; | ||
protected string $password = 'root'; | ||
protected string $username = 'system'; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace yii2\extensions\nestedsets\tests\oracle; | ||
|
||
use PHPUnit\Framework\Attributes\Group; | ||
use yii2\extensions\nestedsets\tests\base\AbstractValidationAndStructure; | ||
|
||
#[Group('oci')] | ||
final class ValidationAndStructureTest extends AbstractValidationAndStructure | ||
{ | ||
protected string $driverName = 'oci'; | ||
protected string|null $dsn = 'oci:dbname=localhost/FREEPDB1;charset=AL32UTF8;'; | ||
protected string $password = 'root'; | ||
protected string $username = 'system'; | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.