Skip to content

Commit

Permalink
fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
pvsaintpe committed Aug 23, 2019
1 parent 39a69e1 commit 8a000d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Helpers/ColumnAssertions.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

/**
* @mixin TestCase
* @codeCoverageIgnore
*/
trait ColumnAssertions
{
Expand Down
2 changes: 1 addition & 1 deletion tests.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash

psql postgres -U user -tc "SELECT 1 FROM pg_database WHERE datname = 'testing'" | grep -q 1 || psql postgres -U user -c "CREATE DATABASE testing"
psql postgres -U postgres -tc "SELECT 1 FROM pg_database WHERE datname = 'testing'" | grep -q 1 || psql postgres -U postgres -c "CREATE DATABASE testing"
composer lint
php -d pcov.directory='.' vendor/bin/phpunit --coverage-html build
5 changes: 5 additions & 0 deletions tests/Functional/Schema/CreateIndexTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ public function createIndexIfNotExists(): void
});

$this->seeIndex('test_table_name_unique');

$this->assertSameIndex(
'test_table_name_unique',
'CREATE UNIQUE INDEX test_table_name_unique ON public.test_table USING btree (name)'
);
}

/**
Expand Down

0 comments on commit 8a000d3

Please sign in to comment.