Skip to content

Commit

Permalink
Revert fix test for the MariaDB v11.4.3 and v11.5.2 (#1232)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek authored Nov 23, 2024
1 parent 6b3add3 commit 70104d9
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tests/Schema/MigratorFkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@

use Atk4\Data\Exception;
use Atk4\Data\Model;
use Atk4\Data\Persistence\Sql\Mysql\Connection as MysqlConnection;
use Atk4\Data\Schema\TestCase;
use Doctrine\DBAL\Exception as DbalException;
use Doctrine\DBAL\Exception\ForeignKeyConstraintViolationException;
use Doctrine\DBAL\Exception\UniqueConstraintViolationException;
use Doctrine\DBAL\Platforms\MySQLPlatform;
use Doctrine\DBAL\Platforms\SQLServerPlatform;
use Doctrine\DBAL\Schema\ForeignKeyConstraint;
use Doctrine\DBAL\Schema\Index;
Expand Down Expand Up @@ -229,12 +227,7 @@ public function testForeignKeyViolationDuringSetup(): void

$client->insert(['name' => 'Leos', 'country_id' => 10]);

// remove if once https://jira.mariadb.org/browse/MDEV-34892 is fixed
if ($this->getDatabasePlatform() instanceof MySQLPlatform && MysqlConnection::isServerMariaDb($this->getConnection())) {
self::assertTrue(true); // @phpstan-ignore staticMethod.alreadyNarrowedType
} else {
$this->expectException(DbalException::class);
}
$this->expectException(DbalException::class);
$this->createMigrator()->createForeignKey($client->getReference('country_id'));
}

Expand Down

0 comments on commit 70104d9

Please sign in to comment.