Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | function it_resolves_object_path_into_presigned_url( |
||
31 | $client, |
||
32 | CommandInterface $command, |
||
33 | RequestInterface $presignedRequest |
||
34 | ) { |
||
35 | $client->getCommand('GetObject', ['Bucket' => 'bucket', 'Key' => 'base/dir/foo.png'])->willReturn($command); |
||
36 | $client->createPresignedRequest($command, Argument::type(\DateTime::class))->willReturn($presignedRequest); |
||
37 | $presignedRequest->getUri()->willReturn('https://amazon'); |
||
38 | |||
39 | $this->resolve('/foo.png')->shouldReturn('https://amazon'); |
||
40 | } |
||
41 | } |
||
42 |