From 2ae43e1f612f4cecead013d471ab7183ccf5b4fc Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 14 Jul 2018 21:16:18 -0700 Subject: [PATCH] Add changes for vagrant --- .env.dusk | 2 +- phpunit.dusk.xml | 21 +++++++++++++++++++++ tests/Browser/BrowserTestCase.php | 2 +- 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 phpunit.dusk.xml diff --git a/.env.dusk b/.env.dusk index 4c8e50527..237f61d32 100644 --- a/.env.dusk +++ b/.env.dusk @@ -20,7 +20,7 @@ MAIL_FROM_NAME="Pterodactyl Panel" RECAPTCHA_ENABLED=false DB_CONNECTION=testing -TESTING_DB_HOST=services.pterodactyl.local +TESTING_DB_HOST=192.168.1.202 TESTING_DB_DATABASE=panel_test TESTING_DB_USERNAME=panel_test TESTING_DB_PASSWORD=Test1234 diff --git a/phpunit.dusk.xml b/phpunit.dusk.xml new file mode 100644 index 000000000..60392c932 --- /dev/null +++ b/phpunit.dusk.xml @@ -0,0 +1,21 @@ + + + + + ./tests/Browser + + + + + ./app + + + diff --git a/tests/Browser/BrowserTestCase.php b/tests/Browser/BrowserTestCase.php index dd96930a8..7451fa1e8 100644 --- a/tests/Browser/BrowserTestCase.php +++ b/tests/Browser/BrowserTestCase.php @@ -45,7 +45,7 @@ abstract class BrowserTestCase extends TestCase ]); return RemoteWebDriver::create( - 'http://services.pterodactyl.local:4444/wd/hub', DesiredCapabilities::chrome()->setCapability( + 'http://host.pterodactyl.local:4444/wd/hub', DesiredCapabilities::chrome()->setCapability( ChromeOptions::CAPABILITY, $options ) );