Skip to content

Commit

Permalink
wip: TYPO3 12 compatibilitiy
Browse files Browse the repository at this point in the history
  • Loading branch information
sirdiego committed Apr 23, 2024
1 parent efe77b9 commit c19b7db
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 21 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/.idea/
/.Build
/var
/.DS_Store
/.php-cs-fixer.cache
17 changes: 0 additions & 17 deletions Classes/Service/ConfigurationServiceFake.php

This file was deleted.

4 changes: 1 addition & 3 deletions Classes/Service/FastlyService.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ class FastlyService extends AbstractService
*/
protected $baseUrl = 'https://api.fastly.com/service/{serviceId}/';

public function __construct(private readonly ConfigurationServiceInterface $configuration)
{
}
public function __construct(private readonly ConfigurationServiceInterface $configuration) {}

/**
* Purge single tag from fastly
Expand Down
4 changes: 3 additions & 1 deletion Tests/Unit/Service/FastlyServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@

namespace HDNET\CdnFastly\Tests\Unit\Service;

use HDNET\CdnFastly\Service\ConfigurationServiceInterface;
use HDNET\CdnFastly\Service\FastlyService;
use HDNET\CdnFastly\Tests\Unit\AbstractTestCase;

class FastlyServiceTest extends AbstractTestCase
{
public function testIsLoadable()
{
$object = new FastlyService();
$configurationService = $this->getMockBuilder(ConfigurationServiceInterface::class)->getMock();
$object = new FastlyService($configurationService);
self::assertInstanceOf(FastlyService::class, $object, 'Object should be creatable');
}
}

0 comments on commit c19b7db

Please sign in to comment.