Skip to content

Commit

Permalink
chore: fix EstateFileResponse Stub name
Browse files Browse the repository at this point in the history
  • Loading branch information
kauffinger committed Oct 15, 2024
1 parent bfb070b commit 604c2c0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions tests/Repositories/EstateFileRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Illuminate\Support\Facades\Http;
use Innobrain\OnOfficeAdapter\Facades\EstateRepository;
use Innobrain\OnOfficeAdapter\Facades\Testing\RecordFactories\FileFactory;
use Innobrain\OnOfficeAdapter\Tests\Stubs\GetEstatePicturesResponse;
use Innobrain\OnOfficeAdapter\Tests\Stubs\GetEstateFilesResponse;

describe('fake responses', function () {
test('get', function () {
Expand All @@ -30,9 +30,9 @@
Http::preventStrayRequests();
Http::fake([
'https://api.onoffice.de/api/stable/api.php/' => Http::sequence([
GetEstatePicturesResponse::make(count: 1500),
GetEstatePicturesResponse::make(count: 1500),
GetEstatePicturesResponse::make(count: 1500),
GetEstateFilesResponse::make(count: 1500),
GetEstateFilesResponse::make(count: 1500),
GetEstateFilesResponse::make(count: 1500),
]),
]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use GuzzleHttp\Promise\PromiseInterface;
use Illuminate\Support\Facades\Http;

class EmptyGetEstatePicturesResponse
class EmptyGetEstateFilesResponse
{
public static function make(array $data = []): PromiseInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use GuzzleHttp\Promise\PromiseInterface;
use Illuminate\Support\Facades\Http;

class GetEstatePictureResponse
class GetEstateFileResponse
{
public static function make(array $data = [], int $id = 1281): PromiseInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use GuzzleHttp\Promise\PromiseInterface;
use Illuminate\Support\Facades\Http;

class GetEstatePicturesResponse
class GetEstateFilesResponse
{
public static function make(array $data = [], int $count = 2): PromiseInterface
{
Expand Down

0 comments on commit 604c2c0

Please sign in to comment.