From bf7fd91aefd664f0bf50b078aa2381cec01509a9 Mon Sep 17 00:00:00 2001 From: Adrian Skierniewski Date: Tue, 9 May 2017 16:59:24 +0200 Subject: [PATCH] Fixed some minor bugs (#64) --- resources/views/account/edit.blade.php | 2 +- resources/views/auth/passwords/reset.blade.php | 2 +- tests/functional/LoginCest.php | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/resources/views/account/edit.blade.php b/resources/views/account/edit.blade.php index 92cb768d..f38a75aa 100644 --- a/resources/views/account/edit.blade.php +++ b/resources/views/account/edit.blade.php @@ -15,7 +15,7 @@
- + diff --git a/resources/views/auth/passwords/reset.blade.php b/resources/views/auth/passwords/reset.blade.php index ff3a1acd..2b19b24d 100644 --- a/resources/views/auth/passwords/reset.blade.php +++ b/resources/views/auth/passwords/reset.blade.php @@ -33,7 +33,7 @@ @if ($errors->has('password_confirmation')) -

{{ $errors->first('password_confirmation') }}/p> +

{{ $errors->first('password_confirmation') }}

@endif
diff --git a/tests/functional/LoginCest.php b/tests/functional/LoginCest.php index 9483d597..c0d4e11f 100644 --- a/tests/functional/LoginCest.php +++ b/tests/functional/LoginCest.php @@ -114,6 +114,8 @@ function () use ($mock) { } ); + $appName = $I->getApplication()->make('config')->get('app.name'); + $mock->shouldReceive('send')->once() ->with( 'emails.auth.welcome', @@ -125,13 +127,13 @@ function ($data) use ($I) { } ), m::on( - function ($closure) use ($I) { + function ($closure) use ($I, $appName) { $message = m::mock(); $message->shouldReceive('to') ->with('example@example.com', 'nick') ->andReturn(m::self()); $message->shouldReceive('subject') - ->with('Welcome to GZERO-CMS') + ->with("Welcome to $appName") ->andReturn(m::self()); try { $closure($message);