diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0fd91c3..c0e5c18 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -33,10 +33,20 @@ To get a local version working of DevDojo Auth. } ``` -Finally, run `composer update` and publish the assets: +Finally, run `composer update`. Next, we need to create two symlinks + +### Create Symlinks + +1. From the public directory create the following symlink + +``` +ln -s ../packages/devdojo/auth/public auth +``` + +2. From the root directory, delete the current `tests` folder and create the following symlink ``` -php artisan vendor:publish --tag=auth:assets +ln -s packages/devdojo/auth/tests tests ``` Auth is now included in your project and is ready for development. diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 9b028b7..506b9a3 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,35 +1,33 @@ - - - - ./tests/Unit - - - ./tests/Feature - - - ./tests/Smoke - - - - - - - - - - - - - - - - - + + + + tests/Unit + + + tests/Feature + + + + + app + + + + + + + + + + + + + + - - - src/ - - diff --git a/tests/Feature/ExampleTest.php b/tests/Feature/ExampleTest.php index 8b5843f..486a281 100644 --- a/tests/Feature/ExampleTest.php +++ b/tests/Feature/ExampleTest.php @@ -5,3 +5,9 @@ $response->assertStatus(200); }); + +test('that the login route at /auth/login returns a successful response', function () { + $response = $this->get('/auth/login'); + + $response->assertStatus(200); +}); diff --git a/tests/Feature/LoginTest.php b/tests/Feature/LoginTest.php deleted file mode 100644 index b531f28..0000000 --- a/tests/Feature/LoginTest.php +++ /dev/null @@ -1,3 +0,0 @@ -todo(); \ No newline at end of file