Skip to content

Commit

Permalink
Fixed some minor bugs (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianSkierniewski committed May 9, 2017
1 parent d4b097e commit bf7fd91
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion resources/views/account/edit.blade.php
Expand Up @@ -15,7 +15,7 @@
<div class="col-md-5">
<form id="edit-account-form" action="#" method="POST" role="form">
<div class="form-group{{ $errors->first('nick') ? ' has-error' : '' }}">
<label class="control-label" for="firstName">@lang('common.nick')</label>
<label class="control-label" for="nick">@lang('common.nick')</label>
<input type="text" id="nick" name="nick" class="form-control"
value="{{ $user->nick }}"
placeholder="@lang('common.nick')">
Expand Down
2 changes: 1 addition & 1 deletion resources/views/auth/passwords/reset.blade.php
Expand Up @@ -33,7 +33,7 @@
<input id="password-confirm" type="password" class="form-control" name="password_confirmation" required>

@if ($errors->has('password_confirmation'))
<p class="help-block">{{ $errors->first('password_confirmation') }}/p>
<p class="help-block">{{ $errors->first('password_confirmation') }}</p>
@endif
</div>
<div class="form-group">
Expand Down
6 changes: 4 additions & 2 deletions tests/functional/LoginCest.php
Expand Up @@ -114,6 +114,8 @@ function () use ($mock) {
}
);

$appName = $I->getApplication()->make('config')->get('app.name');

$mock->shouldReceive('send')->once()
->with(
'emails.auth.welcome',
Expand All @@ -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);
Expand Down

0 comments on commit bf7fd91

Please sign in to comment.