Skip to content

Commit

Permalink
Added namespace to EntityManagerFactoryTest
Browse files Browse the repository at this point in the history
  • Loading branch information
TomHAnderson committed Oct 27, 2024
1 parent eb6cd60 commit a34c1e4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/Feature/EntityManagerFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -536,12 +536,12 @@ public function test_illuminate_cache_provider_custom_store()
return $config;
});

$cache = M::mock(Illuminate\Contracts\Cache\Repository::class);
$cache = M::mock(\Illuminate\Contracts\Cache\Repository::class);

$factory = M::mock(\Illuminate\Contracts\Cache\Factory::class);
$factory->shouldReceive('store')->with('myStoreName')->andReturn($cache);

$container->singleton(Illuminate\Contracts\Cache\Factory::class, function () use ($factory) {
$container->singleton(\Illuminate\Contracts\Cache\Factory::class, function () use ($factory) {
return $factory;
});

Expand Down Expand Up @@ -594,12 +594,12 @@ public function test_illuminate_cache_provider_redis()
return $config;
});

$cache = M::mock(Illuminate\Contracts\Cache\Repository::class);
$cache = M::mock(\Illuminate\Contracts\Cache\Repository::class);

$factory = M::mock(\Illuminate\Contracts\Cache\Factory::class);
$factory->shouldReceive('store')->with('redis')->andReturn($cache);

$container->singleton(Illuminate\Contracts\Cache\Factory::class, function () use ($factory) {
$container->singleton(\Illuminate\Contracts\Cache\Factory::class, function () use ($factory) {
return $factory;
});

Expand Down Expand Up @@ -652,12 +652,12 @@ public function test_illuminate_cache_provider_invalid_store()
return $config;
});

$cache = M::mock(Illuminate\Contracts\Cache\Repository::class);
$cache = M::mock(\Illuminate\Contracts\Cache\Repository::class);

$factory = M::mock(\Illuminate\Contracts\Cache\Factory::class);
$factory->shouldReceive('store')->with('myStoreName')->andReturn($cache);

$container->singleton(Illuminate\Contracts\Cache\Factory::class, function () use ($factory) {
$container->singleton(\Illuminate\Contracts\Cache\Factory::class, function () use ($factory) {
return $factory;
});

Expand Down

0 comments on commit a34c1e4

Please sign in to comment.