mirror of
https://gh.wpcy.net/https://github.com/aspirepress/AspireSync.git
synced 2026-05-31 23:54:06 +08:00
* 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
27 lines
656 B
PHP
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' => []],
|
|
];
|
|
}
|
|
}
|