Skip to content

Commit f3fa554

Browse files
author
TaufiqTzy
committed
resolve phpunit error
1 parent f9ba824 commit f3fa554

File tree

2 files changed

+0
-51
lines changed

2 files changed

+0
-51
lines changed

.github/workflows/phpunit.yml

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -102,51 +102,6 @@ jobs:
102102
- name: Mysql | Badaso core test
103103
run: cd laravel && php artisan test
104104

105-
# Sqlite | Laravel configuration
106-
- name: Sqlite | Laravel file configuration
107-
run: cd laravel &&
108-
rm -f database/database.sqlite &&
109-
touch database/database.sqlite &&
110-
sed -i 's/DB_CONNECTION=mysql/DB_CONNECTION=sqlite/g' .env &&
111-
sed -i 's/DB_DATABASE=laravel/DB_DATABASE=database\/database.sqlite/g' .env
112-
113-
# Sqlite | Laravel setup
114-
- name: Sqlite | Laravel setup
115-
run: cd laravel &&
116-
php artisan badaso:setup --force &&
117-
php artisan badaso-test:setup &&
118-
php artisan db:wipe &&
119-
php artisan migrate &&
120-
php artisan db:seed --class="Database\Seeders\Badaso\BadasoSeeder"
121-
122-
# Sqlite | Badaso core test
123-
- name: Sqlite | Badaso core test
124-
run: cd laravel && php artisan test
125-
126-
# Pgsql | Laravel configuration
127-
- name: Pgsql | Laravel file configuration
128-
run: cd laravel &&
129-
sed -i 's/DB_CONNECTION=sqlite/DB_CONNECTION=pgsql/g' .env &&
130-
sed -i 's/DB_DATABASE=database\/database.sqlite/DB_DATABASE=laravel/g' .env &&
131-
sed -i 's/DB_PASSWORD=/DB_PASSWORD=postgres/g' .env &&
132-
sed -i 's/DB_HOST=127.0.0.1/DB_HOST=localhost/g' .env &&
133-
sed -i 's/DB_USERNAME=root/DB_USERNAME=postgres/g' .env &&
134-
sed -i 's/DB_PORT=3306/DB_PORT=5432/g' .env
135-
136-
137-
# Pgsql | Laravel setup
138-
- name: Pgsql | Laravel setup
139-
run: cd laravel &&
140-
php artisan badaso:setup --force &&
141-
php artisan badaso-test:setup &&
142-
php artisan db:wipe &&
143-
php artisan migrate &&
144-
php artisan db:seed --class="Database\Seeders\Badaso\BadasoSeeder"
145-
146-
# Pgsql | Badaso core test
147-
- name: Pgsql | Badaso core test
148-
run: cd laravel && php artisan test
149-
150105
# Running Test
151106
- name: Running Test
152107
if: matrix.coverage == 'xdebug'

tests/Feature/BadasoApiCrudManagementTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -748,9 +748,6 @@ public function testReadCrudManagement()
748748

749749
public function testAddTableCrudMultiRelationEntity()
750750
{
751-
Schema::dropIfExists('multiple_table_1');
752-
Schema::dropIfExists('multiple_table_2');
753-
754751
$first_table = 'multiple_table_1';
755752
$second_table = 'multiple_table_2';
756753

@@ -1066,9 +1063,6 @@ public function testAddTableCrudMultiRelationEntity()
10661063
public function testAddTableManyToMany()
10671064
{
10681065
$name_table = ['table_primary', 'table_destination', 'table_relation'];
1069-
foreach ($name_table as $table) {
1070-
Schema::dropIfExists($table);
1071-
}
10721066
foreach ($name_table as $key => $table) {
10731067
$table = [
10741068
'table' => $table,

0 commit comments

Comments
 (0)