Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
joshhanley committed May 14, 2024
1 parent e2aa976 commit 6c540a4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ jobs:
run: vendor/bin/dusk-updater detect --no-interaction

- name: Run Browser tests
run: vendor/bin/phpunit --testsuite Browser -c phpunit.xml.dist
run: vendor/bin/phpunit --testsuite Browser -c phpunit.xml.dist tests/Browser/AutocompleteDatabaseTest/AutocompleteDatabaseTest.php
env:
RUNNING_IN_CI: true
DB_CONNECTION: sqlite
DB_DATABASE: database/database.sqlite
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ protected function getEnvironmentSetUp($app)

dump('envSetUpBefore', $app['config']->get('database.connections.testbench'));

// $app['config']->set('database.default', 'testbench');
// $app['config']->set('database.connections.testbench', [
// 'driver' => 'sqlite',
// 'database' => __DIR__.'/../../../database/database.sqlite',
// 'prefix' => '',
// ]);
$app['config']->set('database.default', 'testbench');
$app['config']->set('database.connections.testbench', [
'driver' => 'sqlite',
'database' => __DIR__.'/../../../database/database.sqlite',
'prefix' => '',
]);

$app['config']->set('livewire.legacy_model_binding', true);

// dump('envSetUpAfter', $app['config']->get('database.connections.testbench'));
dump('envSetUpAfter', $app['config']->get('database.connections.testbench'));
}

/** @test */
Expand Down
14 changes: 7 additions & 7 deletions tests/Browser/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ public static function tweakApplicationHook()
dump('tweakAppBefore', config()->get('database.connections.testbench'));
config()->set('autocomplete.options.auto-select', false);
config()->set('autocomplete.options.allow-new', false);
// config()->set('database.default', 'testbench');
// config()->set('database.connections.testbench', [
// 'driver' => 'sqlite',
// 'database' => __DIR__ . '/../../database/database.sqlite',
// 'prefix' => '',
// ]);
// dump('tweakAppAfter', config()->get('database.connections.testbench'));
config()->set('database.default', 'testbench');
config()->set('database.connections.testbench', [
'driver' => 'sqlite',
'database' => __DIR__ . '/../../database/database.sqlite',
'prefix' => '',
]);
dump('tweakAppAfter', config()->get('database.connections.testbench'));
};
}

Expand Down

0 comments on commit 6c540a4

Please sign in to comment.