AspireSync/tests/Stubs/SubversionServiceStub.php
Chuck Adams efa848ff68
various refactors including postgres portability improvements (#38)
* refactor: use epoch seconds for timestamps

* fix: use single query to filter for pulled time

* refactor: use ResourceType instead of strings in most places

* refactor: inline RevisionService into AbstractListService
2024-12-06 08:37:15 -07:00

27 lines
656 B
PHP

<?php
declare(strict_types=1);
namespace App\Tests\Stubs;
use App\ResourceType;
use App\Services\Interfaces\SubversionServiceInterface;
class SubversionServiceStub implements SubversionServiceInterface
{
public function getUpdatedSlugs(ResourceType $type, int $prevRevision, int $lastRevision): array
{
return [
'revision' => 123,
'slugs' => ['foo' => [], 'bar' => [], 'baz' => []],
];
}
public function scrapeSlugsFromIndex(ResourceType $type): array
{
return [
'revision' => 123,
'slugs' => ['foo' => [], 'bar' => [], 'baz' => []],
];
}
}