Skip to content
Merged
Show file tree
Hide file tree
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 @@ -22,7 +22,7 @@ final class IbexaSystemInfoCollectorTest extends TestCase

public function setUp(): void
{
$this->versionStabilityChecker = $this->createStub(VersionStabilityChecker::class);
$this->versionStabilityChecker = self::createStub(VersionStabilityChecker::class);
}

public function testCollect(): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ final class JsonComposerLockSystemInfoCollectorTest extends TestCase

public function setUp(): void
{
$this->versionStabilityChecker = $this->createStub(VersionStabilityChecker::class);
$this->versionStabilityChecker = self::createStub(VersionStabilityChecker::class);
}

public function testCollectWithMinimumStability(): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ final class RepositorySystemInfoCollectorTest extends TestCase
protected function setUp(): void
{
$this->dbalConnectionMock = $this->createMock(Connection::class);
$this->dbalPlatformMock = $this->createStub(AbstractMySQLPlatform::class);
$this->dbalPlatformMock = self::createStub(AbstractMySQLPlatform::class);
$this->metricsProviderMock = $this->createMock(MetricsProvider::class);
$this->metricsMock = $this->createMock(Metrics::class);

Expand Down
6 changes: 3 additions & 3 deletions tests/bundle/SystemInfo/Registry/IdentifierBasedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ final class IdentifierBasedTest extends TestCase
protected function setUp(): void
{
$this->testItems = [
'foo' => $this->createStub(SystemInfoCollector::class),
'bar' => $this->createStub(SystemInfoCollector::class),
'foo' => self::createStub(SystemInfoCollector::class),
'bar' => self::createStub(SystemInfoCollector::class),
];

$this->registry = new IdentifierBased();
Expand Down Expand Up @@ -63,7 +63,7 @@ public function testReplaceItem(): void
$this->registry = new IdentifierBased($this->testItems);

$replaceItems = [
'foo' => $this->createStub('Ibexa\\Bundle\\SystemInfo\\SystemInfo\\Collector\\SystemInfoCollector'),
'foo' => self::createStub('Ibexa\\Bundle\\SystemInfo\\SystemInfo\\Collector\\SystemInfoCollector'),
];

$this->registry = new IdentifierBased($replaceItems);
Expand Down
2 changes: 1 addition & 1 deletion tests/bundle/View/SystemInfoViewBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function testBuildView(): void
$this->getRegistryMock()
);

$systemInfo = $this->createStub(SystemInfo::class);
$systemInfo = self::createStub(SystemInfo::class);

$this->getRegistryMock()
->method('getItem')
Expand Down
6 changes: 3 additions & 3 deletions tests/lib/EventListener/SystemInfoTabGroupListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public function testOnTabGroupPreRender(array $identifiers): void
->method('createTab')
->willReturnMap(
[
['identifier_1', null, $this->createStub(SystemInfoTab::class)],
['identifier_2', null, $this->createStub(SystemInfoTab::class)],
['identifier_1', null, self::createStub(SystemInfoTab::class)],
['identifier_2', null, self::createStub(SystemInfoTab::class)],
]
)
;
Expand All @@ -82,7 +82,7 @@ public function testOnTabGroupPreRender(array $identifiers): void

public function testSubscribedEvents(): void
{
$systemInfoCollectorRegistry = $this->createStub(SystemInfoCollectorRegistry::class);
$systemInfoCollectorRegistry = self::createStub(SystemInfoCollectorRegistry::class);
$systemInfoTabGroupListener = new SystemInfoTabGroupListener(
$this->tabFactory,
$systemInfoCollectorRegistry
Expand Down
Loading