mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 01:42:32 +00:00
Code cleanup.
This commit is contained in:
@@ -77,7 +77,7 @@ class AuthenticateTest extends TestCase
|
||||
$this->be($user);
|
||||
$response = $this->get('/_test/authenticate');
|
||||
$this->assertEquals(Response::HTTP_FOUND, $response->getStatusCode());
|
||||
$response->assertSessionHas('logoutMessage', strval(trans('firefly.block_account_logout')));
|
||||
$response->assertSessionHas('logoutMessage', (string)trans('firefly.block_account_logout'));
|
||||
$response->assertRedirect(route('login'));
|
||||
|
||||
}
|
||||
@@ -94,7 +94,7 @@ class AuthenticateTest extends TestCase
|
||||
$this->be($user);
|
||||
$response = $this->get('/_test/authenticate');
|
||||
$this->assertEquals(Response::HTTP_FOUND, $response->getStatusCode());
|
||||
$response->assertSessionHas('logoutMessage', strval(trans('firefly.email_changed_logout')));
|
||||
$response->assertSessionHas('logoutMessage', (string)trans('firefly.email_changed_logout'));
|
||||
$response->assertRedirect(route('login'));
|
||||
}
|
||||
|
||||
|
||||
@@ -1241,7 +1241,7 @@ class BinderTest extends TestCase
|
||||
}
|
||||
);
|
||||
|
||||
$names = join(',', $tags->pluck('tag')->toArray());
|
||||
$names = implode(',', $tags->pluck('tag')->toArray());
|
||||
|
||||
|
||||
$this->be($this->user());
|
||||
|
||||
@@ -65,7 +65,7 @@ class IsSandstormUserTest extends TestCase
|
||||
$response = $this->get('/_test/is-sandstorm');
|
||||
|
||||
$this->assertEquals(Response::HTTP_FOUND, $response->getStatusCode());
|
||||
$response->assertSessionHas('warning', strval(trans('firefly.sandstorm_not_available')));
|
||||
$response->assertSessionHas('warning', (string)trans('firefly.sandstorm_not_available'));
|
||||
$response->assertRedirect(route('index'));
|
||||
putenv('SANDSTORM=0');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user