]> BookStack Code Mirror - bookstack/commitdiff
Updated phpunit instructions to composer phpunit
authorDan Brown <redacted>
Sun, 4 Aug 2019 13:34:02 +0000 (14:34 +0100)
committerDan Brown <redacted>
Sun, 4 Aug 2019 13:34:02 +0000 (14:34 +0100)
Closes #1555

readme.md

index ccbd41ab84bc65bef12abe1e1c51ae91d22e15fe..276a3de2017e35fdf3856c55ba4826a8054ccfe9 100644 (file)
--- a/readme.md
+++ b/readme.md
@@ -63,7 +63,7 @@ npm run production
 npm run dev
 ```
 
-BookStack has many integration tests that use Laravel's built-in testing capabilities which makes use of PHPUnit. To use you will need PHPUnit 6 installed and accessible via command line, Directly running the composer-installed version will not work. There is a `mysql_testing` database defined within the app config which is what is used by PHPUnit. This database is set with the following database name, user name and password defined as `bookstack-test`. You will have to create that database and credentials before testing.
+BookStack has many integration tests that use Laravel's built-in testing capabilities which makes use of PHPUnit. There is a `mysql_testing` database defined within the app config which is what is used by PHPUnit. This database is set with the database name, user name and password all defined as `bookstack-test`. You will have to create that database and that set of credentials before testing.
 
 The testing database will also need migrating and seeding beforehand. This can be done with the following commands:
 
@@ -72,7 +72,7 @@ php artisan migrate --database=mysql_testing
 php artisan db:seed --class=DummyContentSeeder --database=mysql_testing
 ```
 
-Once done you can run `phpunit` in the application root directory to run all tests.
+Once done you can run `php vendor/bin/phpunit` in the application root directory to run all tests.
 
 ## Translations