Skip to content

Commit

Permalink
remove unused code in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Art4 committed Oct 18, 2023
1 parent 1f0af95 commit 01ccd18
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 60 deletions.
35 changes: 0 additions & 35 deletions tests/Fixtures/Factory.php

This file was deleted.

25 changes: 0 additions & 25 deletions tests/Fixtures/HelperTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use Art4\JsonApiClient\Accessable;
use Art4\JsonApiClient\Factory;
use Art4\JsonApiClient\Manager;
use Art4\JsonApiClient\Tests\Fixtures\Factory as FixtureFactory;
use PHPUnit\Framework\MockObject\MockObject;

/**
Expand Down Expand Up @@ -139,30 +138,6 @@ public static function jsonValuesAsStringProviderWithoutObject(): array
return array_values($data);
}

/**
* Builds a Manager Mock
*/
public function buildManagerMock()
{
// Mock factory
$factory = new FixtureFactory();
$factory->testcase = $this;

// Mock Manager
$manager = $this->createMock(Manager::class);

$manager->expects($this->any())
->method('getFactory')
->will($this->returnValue($factory));

$manager->expects($this->any())
->method('getConfig')
->with('optional_item_id')
->willReturn(false);

return $manager;
}

/**
* Builds a Manager Mock and set it into the TestCase
*/
Expand Down

0 comments on commit 01ccd18

Please sign in to comment.