Skip to content

Commit

Permalink
Generate tests for other DBs
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk committed Feb 24, 2025
1 parent c36808b commit aa705e3
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ $container = new Container();
$commandGenerator = new EventDrivenCommandGenerator($schema, $container);

$orm = new ORM(
factory: $factory,
schema: $schema,
commandGenerator: $commandGenerator
factory: $factory,
schema: $schema,
commandGenerator: $commandGenerator,
);
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace Cycle\ORM\Entity\Behavior\Tests\Functional\Driver\MySQL\OptimisticLock;


// phpcs:ignore
use Cycle\ORM\Entity\Behavior\Tests\Functional\Driver\Common\OptimisticLock\InquiredRelationTest as CommonClass;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

declare(strict_types=1);

namespace Cycle\ORM\Entity\Behavior\Tests\Functional\Driver\Postgres\OptimisticLock;

// phpcs:ignore
use Cycle\ORM\Entity\Behavior\Tests\Functional\Driver\Common\OptimisticLock\InquiredRelationTest as CommonClass;

/**
* @group driver
* @group driver-postgres
*/
class InquiredRelationTest extends CommonClass
{
public const DRIVER = 'postgres';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

declare(strict_types=1);

namespace Cycle\ORM\Entity\Behavior\Tests\Functional\Driver\SQLServer\OptimisticLock;

// phpcs:ignore
use Cycle\ORM\Entity\Behavior\Tests\Functional\Driver\Common\OptimisticLock\InquiredRelationTest as CommonClass;

/**
* @group driver
* @group driver-sqlserver
*/
class InquiredRelationTest extends CommonClass
{
public const DRIVER = 'sqlserver';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

declare(strict_types=1);

namespace Cycle\ORM\Entity\Behavior\Tests\Functional\Driver\SQLite\OptimisticLock;

// phpcs:ignore
use Cycle\ORM\Entity\Behavior\Tests\Functional\Driver\Common\OptimisticLock\InquiredRelationTest as CommonClass;

/**
* @group driver
* @group driver-sqlite
*/
class InquiredRelationTest extends CommonClass
{
public const DRIVER = 'sqlite';
}

0 comments on commit aa705e3

Please sign in to comment.