From 7cda9b026e11b67c861faa76dd1ce402467fe30b Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Sat, 6 Apr 2019 18:36:17 +0100 Subject: [PATCH] Updated tests to suit layout changes, Updated 404 page - Also replaced 'or' usage in templates with null coalescing operator --- app/Http/Controllers/HomeController.php | 6 +-- .../views/components/image-manager.blade.php | 2 +- .../views/components/image-picker.blade.php | 2 +- resources/views/errors/404.blade.php | 51 +++++++++++-------- resources/views/errors/500.blade.php | 2 +- resources/views/pages/form-toolbox.blade.php | 2 +- resources/views/pages/form.blade.php | 6 +-- tests/Entity/EntitySearchTest.php | 6 +-- tests/Entity/EntityTest.php | 13 +---- tests/Entity/PageDraftTest.php | 6 +-- tests/HomepageTest.php | 2 +- tests/Permissions/RestrictionsTest.php | 40 +++++++-------- tests/Permissions/RolesTest.php | 4 +- tests/UserProfileTest.php | 8 +-- 14 files changed, 72 insertions(+), 78 deletions(-) diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index fb2620bf4..c5f3cd02a 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -123,7 +123,7 @@ class HomeController extends Controller */ public function customHeadContent() { - return view('partials/custom-head-content'); + return view('partials.custom-head-content'); } /** @@ -138,7 +138,7 @@ class HomeController extends Controller $allowRobots = $sitePublic; } return response() - ->view('common/robots', ['allowRobots' => $allowRobots]) + ->view('common.robots', ['allowRobots' => $allowRobots]) ->header('Content-Type', 'text/plain'); } @@ -147,6 +147,6 @@ class HomeController extends Controller */ public function getNotFound() { - return response()->view('errors/404', [], 404); + return response()->view('errors.404', [], 404); } } diff --git a/resources/views/components/image-manager.blade.php b/resources/views/components/image-manager.blade.php index 2d1755e46..ef45c0001 100644 --- a/resources/views/components/image-manager.blade.php +++ b/resources/views/components/image-manager.blade.php @@ -1,4 +1,4 @@ -
+