@@ -79,7 +79,7 @@ public function testItGeneratesTheEnvironmentFileWithGeneratedKey()
79
79
->shouldReceive ('get ' )
80
80
->once ()
81
81
->andReturn (
82
- (new Encrypter ($ key = Encrypter::generateKey ('aes-128-cbc ' ), 'aes-128-cbc ' ))
82
+ (new Encrypter ($ key = Encrypter::generateKey ('AES-256-CBC ' ), 'AES-256-CBC ' ))
83
83
->encrypt ('APP_NAME=Laravel ' )
84
84
);
85
85
@@ -116,7 +116,7 @@ public function testItGeneratesTheEnvironmentFileWithUserProvidedKey()
116
116
117
117
public function testItGeneratesTheEnvironmentFileWithKeyFromEnvironment ()
118
118
{
119
- putenv ('LARAVEL_ENV_ENCRYPTION_KEY=ponmlkjihgfedcba ' );
119
+ putenv ('LARAVEL_ENV_ENCRYPTION_KEY=ponmlkjihgfedcbaponmlkjihgfedcba ' );
120
120
121
121
$ this ->filesystem ->shouldReceive ('exists ' )
122
122
->once ()
@@ -127,7 +127,7 @@ public function testItGeneratesTheEnvironmentFileWithKeyFromEnvironment()
127
127
->shouldReceive ('get ' )
128
128
->once ()
129
129
->andReturn (
130
- (new Encrypter ('ponmlkjihgfedcba ' , 'aes-128-cbc ' ))
130
+ (new Encrypter ('ponmlkjihgfedcbaponmlkjihgfedcba ' , 'AES-256-CBC ' ))
131
131
->encrypt ('APP_NAME="Laravel Three" ' )
132
132
);
133
133
@@ -214,11 +214,11 @@ public function testItWritesTheEnvironmentFileCustomFilename()
214
214
->shouldReceive ('get ' )
215
215
->once ()
216
216
->andReturn (
217
- (new Encrypter ('abcdefghijklmnop ' ))
217
+ (new Encrypter ('abcdefghijklmnopabcdefghijklmnop ' , ' AES-256-CBC ' ))
218
218
->encrypt ('APP_NAME="Laravel Two" ' )
219
219
);
220
220
221
- $ this ->artisan ('env:decrypt ' , ['--env ' => 'production ' , '--key ' => 'abcdefghijklmnop ' , '--filename ' => '.env ' ])
221
+ $ this ->artisan ('env:decrypt ' , ['--env ' => 'production ' , '--key ' => 'abcdefghijklmnopabcdefghijklmnop ' , '--filename ' => '.env ' ])
222
222
->expectsOutputToContain ('Environment successfully decrypted. ' )
223
223
->assertExitCode (0 );
224
224
0 commit comments