Skip to content

Commit 01ccd18

Browse files
committed
remove unused code in tests
1 parent 1f0af95 commit 01ccd18

File tree

2 files changed

+0
-60
lines changed

2 files changed

+0
-60
lines changed

tests/Fixtures/Factory.php

Lines changed: 0 additions & 35 deletions
This file was deleted.

tests/Fixtures/HelperTrait.php

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use Art4\JsonApiClient\Accessable;
1212
use Art4\JsonApiClient\Factory;
1313
use Art4\JsonApiClient\Manager;
14-
use Art4\JsonApiClient\Tests\Fixtures\Factory as FixtureFactory;
1514
use PHPUnit\Framework\MockObject\MockObject;
1615

1716
/**
@@ -139,30 +138,6 @@ public static function jsonValuesAsStringProviderWithoutObject(): array
139138
return array_values($data);
140139
}
141140

142-
/**
143-
* Builds a Manager Mock
144-
*/
145-
public function buildManagerMock()
146-
{
147-
// Mock factory
148-
$factory = new FixtureFactory();
149-
$factory->testcase = $this;
150-
151-
// Mock Manager
152-
$manager = $this->createMock(Manager::class);
153-
154-
$manager->expects($this->any())
155-
->method('getFactory')
156-
->will($this->returnValue($factory));
157-
158-
$manager->expects($this->any())
159-
->method('getConfig')
160-
->with('optional_item_id')
161-
->willReturn(false);
162-
163-
return $manager;
164-
}
165-
166141
/**
167142
* Builds a Manager Mock and set it into the TestCase
168143
*/

0 commit comments

Comments
 (0)