Skip to content

Commit

Permalink
Use stubs over mocks in tests
Browse files Browse the repository at this point in the history
Co-authored-by: Grégoire Paris <[email protected]>
  • Loading branch information
alcaeus and greg0ire committed Apr 29, 2021
1 parent 7ba9c98 commit f634c64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Doctrine/Tests/ORM/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function testSetGetMetadataCacheImpl(): void
public function testSetGetMetadataCache(): void
{
$this->assertNull($this->configuration->getMetadataCache());
$cache = $this->createMock(CacheItemPoolInterface::class);
$cache = $this->createStub(CacheItemPoolInterface::class);
$this->configuration->setMetadataCache($cache);
$this->assertSame($cache, $this->configuration->getMetadataCache());
}
Expand Down Expand Up @@ -233,7 +233,7 @@ public function testEnsureProductionSettingsQueryArrayCache(): void
$this->configuration->ensureProductionSettings();
}

public function testEnsureProductionSettingsLegacyLegacyMetadataArrayCache(): void
public function testEnsureProductionSettingsLegacyMetadataArrayCache(): void
{
$this->setProductionSettings();
$this->configuration->setMetadataCacheImpl(new ArrayCache());
Expand Down

0 comments on commit f634c64

Please sign in to comment.