From 710f54c0156c5fa081bc6af1a68e7cb44723939b Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Mon, 24 Jan 2022 19:34:26 +0100 Subject: add example in laravel --- .../LARAVEL/iBook/tests/CreatesApplication.php | 22 ++++++++++++++++++++++ .../LARAVEL/iBook/tests/Feature/ExampleTest.php | 21 +++++++++++++++++++++ Year_3/TSDWL/LARAVEL/iBook/tests/TestCase.php | 10 ++++++++++ .../TSDWL/LARAVEL/iBook/tests/Unit/ExampleTest.php | 18 ++++++++++++++++++ 4 files changed, 71 insertions(+) create mode 100644 Year_3/TSDWL/LARAVEL/iBook/tests/CreatesApplication.php create mode 100644 Year_3/TSDWL/LARAVEL/iBook/tests/Feature/ExampleTest.php create mode 100644 Year_3/TSDWL/LARAVEL/iBook/tests/TestCase.php create mode 100644 Year_3/TSDWL/LARAVEL/iBook/tests/Unit/ExampleTest.php (limited to 'Year_3/TSDWL/LARAVEL/iBook/tests') diff --git a/Year_3/TSDWL/LARAVEL/iBook/tests/CreatesApplication.php b/Year_3/TSDWL/LARAVEL/iBook/tests/CreatesApplication.php new file mode 100644 index 0000000..547152f --- /dev/null +++ b/Year_3/TSDWL/LARAVEL/iBook/tests/CreatesApplication.php @@ -0,0 +1,22 @@ +make(Kernel::class)->bootstrap(); + + return $app; + } +} diff --git a/Year_3/TSDWL/LARAVEL/iBook/tests/Feature/ExampleTest.php b/Year_3/TSDWL/LARAVEL/iBook/tests/Feature/ExampleTest.php new file mode 100644 index 0000000..4ae02bc --- /dev/null +++ b/Year_3/TSDWL/LARAVEL/iBook/tests/Feature/ExampleTest.php @@ -0,0 +1,21 @@ +get('/'); + + $response->assertStatus(200); + } +} diff --git a/Year_3/TSDWL/LARAVEL/iBook/tests/TestCase.php b/Year_3/TSDWL/LARAVEL/iBook/tests/TestCase.php new file mode 100644 index 0000000..2932d4a --- /dev/null +++ b/Year_3/TSDWL/LARAVEL/iBook/tests/TestCase.php @@ -0,0 +1,10 @@ +assertTrue(true); + } +} -- cgit v1.2.3-18-g5258