Skip to content

Commit

Permalink
back out partial test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pwtyler committed Nov 12, 2024
1 parent 2ebc484 commit 36552ec
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions tests/Unit/EndpointServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,6 @@
*/
class EndpointServiceTest extends TestCase {

protected $entityTypeManager;

protected function setUp(): void {
parent::setUp();

// Mock the EntityTypeManagerInterface.
$this->entityTypeManager = $this->createMock(EntityTypeManagerInterface::class);

// Define any specific behavior for methods you expect to call.
// For example, if you are loading storage for a particular entity type:
// $storageMock = $this->createMock(EntityStorageInterface::class);
// $this->entityTypeManager
// ->method('getStorage')
// ->with('search_api_server')
// ->willReturn($storageMock);
}

/**
* Test the endpoint class's ability to generate correct URL's.
*
Expand All @@ -47,7 +30,7 @@ public function testURIGeneration() {
'collection' => NULL,
'leader' => FALSE,
'reload_path' => "/reload-path",
], $this->entityTypeManager);
]);

$this->assertEquals('/core-name', $ep->getCore());
$this->assertEquals('server-path', $ep->getPath());
Expand All @@ -73,7 +56,7 @@ public function testURIGeneration() {
}

public function testReloadPath() {
$ep = new Endpoint(["reload_path" => "/reload"], $this->entityTypeManager);
$ep = new Endpoint(["reload_path" => "/reload"]);
$this->assertEquals("/reload", $ep->getReloadPath());
}

Expand Down

0 comments on commit 36552ec

Please sign in to comment.