Skip to content

Commit

Permalink
Skip Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jubeki committed Sep 3, 2024
1 parent 70e0e4e commit 24585bc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
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

0 comments on commit 24585bc

Please sign in to comment.