Skip to content

Commit

Permalink
Improve tests coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
vokomarov committed Mar 25, 2023
1 parent 95f32dd commit 87a6d4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 3 additions & 0 deletions app/src/Bootloader/S3Bootloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
use Spiral\Boot\Bootloader\Bootloader;
use Spiral\Core\Container;

/**
* Note: It uses ~10MB of memory
*/
class S3Bootloader extends Bootloader
{
/**
Expand Down
7 changes: 0 additions & 7 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ abstract class TestCase extends BaseTestCase
use InteractsWithMock;
use AssertHelpers;

protected function getFakeS3(): S3ClientInterface
{
return $this->getMockBuilder(S3ClientInterface::class)->getMock();
}

protected function setUp(): void
{
$this->beforeBooting(static function (ConfiguratorInterface $config): void {
Expand All @@ -45,8 +40,6 @@ protected function setUp(): void

parent::setUp();

$this->getContainer()->bindSingleton(S3ClientInterface::class, $this->getFakeS3());

$this->getContainer()->get(TranslatorInterface::class)->setLocale('en');

$this->scopedDatabase();
Expand Down

0 comments on commit 87a6d4d

Please sign in to comment.