Skip to content
Snippets Groups Projects

#3455847 Run gitlab ci on next major version

Merged Kim Pepper requested to merge issue/cloudfront_purger-3455847:3455847-run-gitlab-ci into 2.x
Files
2
@@ -47,7 +47,6 @@ class CloudFrontInvalidatorTest extends UnitTestCase {
$this->logger = $this->createMock(LoggerInterface::class);
$this->client = $this->getMockBuilder(CloudFrontClient::class)
->disableOriginalConstructor()
->addMethods(['createInvalidation'])
->getMock();
$this->invalidator = new CloudFrontInvalidator($this->client, $this->logger);
}
@@ -67,8 +66,8 @@ class CloudFrontInvalidatorTest extends UnitTestCase {
]);
$this->client->expects($this->once())
->method('createInvalidation')
->withAnyParameters()
->method('__call')
->with($this->equalTo('createInvalidation'))
->willReturn($result);
$paths = ['node/1', 'blog/*', '/'];
@@ -92,7 +91,9 @@ class CloudFrontInvalidatorTest extends UnitTestCase {
/** @var \PHPUnit\Framework\MockObject\MockObject|\Aws\CommandInterface $command */
$command = $this->createMock(CommandInterface::class);
$this->client->method('createInvalidation')
$this->client->expects($this->once())
->method('__call')
->with($this->equalTo('createInvalidation'))
->will($this->throwException(new AwsException('test message', $command)));
$paths = ['node/1', 'blog/*', '/'];
Loading