Skip to content

Commit

Permalink
feat: add estate file builder fake
Browse files Browse the repository at this point in the history
  • Loading branch information
Katalam committed May 16, 2024
1 parent 497e484 commit b75060b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog
## main

## v0.4.1
- Added missing estate files fake method

## v0.4.0
- Moved user repository query to settings repository
- Added regions to settings repository
Expand Down
9 changes: 9 additions & 0 deletions src/Facades/Testing/EstateRepositoryFake.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Katalam\OnOfficeAdapter\Facades\Testing;

use Katalam\OnOfficeAdapter\Query\Testing\EstateBuilderFake;
use Katalam\OnOfficeAdapter\Query\Testing\EstateFileBuilderFake;

class EstateRepositoryFake
{
Expand All @@ -15,4 +16,12 @@ public function query(): EstateBuilderFake
{
return new EstateBuilderFake($this->fakeResponses);
}

/**
* Returns a new fake estate files builder instance.
*/
public function files(): EstateFileBuilderFake
{
return new EstateFileBuilderFake($this->fakeResponses);
}
}
7 changes: 7 additions & 0 deletions src/Query/Testing/EstateFileBuilderFake.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

namespace Katalam\OnOfficeAdapter\Query\Testing;

class EstateFileBuilderFake extends BaseFake
{
}

0 comments on commit b75060b

Please sign in to comment.