From 92eb8143762e116e8959f6270271fd5540ca50ac Mon Sep 17 00:00:00 2001 From: horus_arch Date: Wed, 7 Feb 2018 18:07:53 +0100 Subject: Adds basic site in laravel. --- site/tests/CreatesApplication.php | 25 +++++++++++++++++++++++++ site/tests/Feature/ExampleTest.php | 21 +++++++++++++++++++++ site/tests/TestCase.php | 10 ++++++++++ site/tests/Unit/ExampleTest.php | 19 +++++++++++++++++++ 4 files changed, 75 insertions(+) create mode 100644 site/tests/CreatesApplication.php create mode 100644 site/tests/Feature/ExampleTest.php create mode 100644 site/tests/TestCase.php create mode 100644 site/tests/Unit/ExampleTest.php (limited to 'site/tests') diff --git a/site/tests/CreatesApplication.php b/site/tests/CreatesApplication.php new file mode 100644 index 0000000..ff133fb --- /dev/null +++ b/site/tests/CreatesApplication.php @@ -0,0 +1,25 @@ +make(Kernel::class)->bootstrap(); + + Hash::driver('bcrypt')->setRounds(4); + + return $app; + } +} diff --git a/site/tests/Feature/ExampleTest.php b/site/tests/Feature/ExampleTest.php new file mode 100644 index 0000000..f31e495 --- /dev/null +++ b/site/tests/Feature/ExampleTest.php @@ -0,0 +1,21 @@ +get('/'); + + $response->assertStatus(200); + } +} diff --git a/site/tests/TestCase.php b/site/tests/TestCase.php new file mode 100644 index 0000000..2932d4a --- /dev/null +++ b/site/tests/TestCase.php @@ -0,0 +1,10 @@ +assertTrue(true); + } +} -- cgit v1.2.3