Skip to content
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

[Driesvints] Skip some Postgres Tests #52632

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tests/Integration/Database/Postgres/FulltextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ public function testWhereFulltext()

public function testWhereFulltextWithWebsearch()
{
if (version_compare($this->getConnection()->getServerVersion(), '11.0', '<')) {
$this->markTestSkipped('Test requires a PostgreSQL connection >= 11.0');
}

$articles = DB::table('articles')->whereFulltext(['title', 'body'], '+PostgreSQL -YourSQL', ['mode' => 'websearch'])->get();

$this->assertCount(5, $articles);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ public function testGetViews()

public function testDropPartitionedTables()
{
if (version_compare($this->getConnection()->getServerVersion(), '11.0', '<')) {
$this->markTestSkipped('Test requires a PostgreSQL connection >= 11.0');
}

DB::statement('create table groups (id bigserial, tenant_id bigint, name varchar, primary key (id, tenant_id)) partition by hash (tenant_id)');
DB::statement('create table groups_1 partition of groups for values with (modulus 2, remainder 0)');
DB::statement('create table groups_2 partition of groups for values with (modulus 2, remainder 1)');
Expand Down
4 changes: 4 additions & 0 deletions tests/Integration/Database/SchemaBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,10 @@ public function testModifyingStoredColumnOnSqlite()

public function testGettingGeneratedColumns()
{
if ($this->driver === 'pgsql' && version_compare($this->getConnection()->getServerVersion(), '12.0', '<')) {
$this->markTestSkipped('Test requires a PostgreSQL connection >= 12.0');
}

Schema::create('test', function (Blueprint $table) {
$table->integer('price');

Expand Down
Loading