File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 281281 'Value ' => 'new-secret-value ' ,
282282 'Type ' => 'SecureString ' ,
283283 'Overwrite ' => true ,
284+ 'KeyId ' => null ,
284285 ])
285286 ->andReturn (new Result ([]));
286287
313314 'Value ' => 'plain-value ' ,
314315 'Type ' => 'String ' ,
315316 'Overwrite ' => true ,
317+ 'KeyId ' => null ,
316318 ])
317319 ->andReturn (new Result ([]));
318320
364366 // Mock the putParameter and getParameter calls that set() will make
365367 $ this ->mockClient ->shouldReceive ('putParameter ' )
366368 ->once ()
369+ ->with (\Mockery::on (function ($ params ) {
370+ return $ params ['KeyId ' ] === null ;
371+ }))
367372 ->andReturn (new Result ([]));
368373
369374 $ getResult = new Result ([
407412 $ this ->mockClient ->shouldReceive ('putParameter ' )
408413 ->once ()
409414 ->with (\Mockery::on (function ($ params ) use ($ unicodeValue ) {
410- return $ params ['Value ' ] === $ unicodeValue ;
415+ return $ params ['Value ' ] === $ unicodeValue && $ params [ ' KeyId ' ] === null ;
411416 }))
412417 ->andReturn (new Result ([]));
413418
433438 $ this ->mockClient ->shouldReceive ('putParameter ' )
434439 ->once ()
435440 ->with (\Mockery::on (function ($ params ) {
436- return $ params ['Value ' ] === '' ;
441+ return $ params ['Value ' ] === '' && $ params [ ' KeyId ' ] === null ;
437442 }))
438443 ->andReturn (new Result ([]));
439444
You can’t perform that action at this time.
0 commit comments