Permalink
Browse files

Set bcrypt rounds using the hashing config

  • Loading branch information...
roberto-aguilar committed Apr 18, 2018
1 parent 0b89e2f commit dc320c894253a4c18541bf27447e0066b16c825d
Showing with 2 additions and 4 deletions.
  1. +1 −1 config/hashing.php
  2. +1 −0 phpunit.xml
  3. +0 −3 tests/CreatesApplication.php
@@ -29,7 +29,7 @@
*/
'bcrypt' => [
'rounds' => 10,
'rounds' => env('BCRYPT_ROUNDS', 10),
],
/*
@@ -24,6 +24,7 @@
</filter>
<php>
<env name="APP_ENV" value="testing"/>
<env name="BCRYPT_ROUNDS" value="4"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="QUEUE_DRIVER" value="sync"/>
@@ -2,7 +2,6 @@
namespace Tests;
use Illuminate\Support\Facades\Hash;
use Illuminate\Contracts\Console\Kernel;
trait CreatesApplication
@@ -18,8 +17,6 @@ public function createApplication()
$app->make(Kernel::class)->bootstrap();
Hash::driver('bcrypt')->setRounds(4);
return $app;
}
}

0 comments on commit dc320c8

Please sign in to comment.