Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Tests\Unit\Divante\ClassificationTreeBundle\Service;

use AdvancedObjectSearchBundle\Service;
use Divante\ClassificationTreeBundle\Service\ClassificationTreeBuilder;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
Expand All @@ -15,20 +14,7 @@ class ClassificationTreeBuilderTest extends TestCase

public function setUp(): void
{
/** @var Service|MockObject $searchService */
$searchService = $this->createMock(Service::class);

/** @var StoreConfig\Listing|MockObject $listing */
$storeConfigListing = $this->getMockBuilder(StoreConfig\Listing::class)
->setMethods(['load'])
->getMock();
$storeConfigListing->method('load')
->withAnyParameters()
->willReturn([new StoreConfig()]);

$this->classificationTreeBuilder = new ClassificationTreeBuilder(
$searchService, $storeConfigListing
);
$this->classificationTreeBuilder = new ClassificationTreeBuilder();
}

public function testGetRootNodes()
Expand Down