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
1 change: 0 additions & 1 deletion config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace Symfony\Component\DependencyInjection\Loader\Configurator;

use BytesCommerce\FileUploadField\Field\Configurator\FileConfigurator;
use BytesCommerce\FileUploadField\Field\FileField;
use BytesCommerce\FileUploadField\Subscriber\TemplateRegisterSubscriber;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace BytesCommerce\FileUploadField\Tests\DependencyInjection;

use BytesCommerce\FileUploadField\DependencyInjection\FileUploadFieldExtension;
use BytesCommerce\FileUploadField\Field\Configurator\FileConfigurator;
use BytesCommerce\FileUploadField\Field\FileField;
use BytesCommerce\FileUploadField\Subscriber\TemplateRegisterSubscriber;
use PHPUnit\Framework\TestCase;
Expand All @@ -24,7 +23,7 @@ public function testLoadAddsServiceDefinitions(): void

$this->assertNotEmpty(
$definitions,
'Expected at least one service definition to be added to the container.'
'Expected at least one service definition to be added to the container.',
);

$this->assertTrue($container->hasDefinition(TemplateRegisterSubscriber::class), sprintf('The expected service "%s" is not defined.', TemplateRegisterSubscriber::class));
Expand Down
2 changes: 1 addition & 1 deletion tests/PhpUnit/Field/FileFieldTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
namespace BytesCommerce\FileUploadField\Tests\Field;

use BytesCommerce\FileUploadField\Field\FileField;
use EasyCorp\Bundle\EasyAdminBundle\Form\Type\FileUploadType;
use EasyCorp\Bundle\EasyAdminBundle\Config\Option\TextAlign;
use EasyCorp\Bundle\EasyAdminBundle\Form\Type\FileUploadType;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Validator\Constraints\File;

Expand Down
10 changes: 6 additions & 4 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<?php

declare(strict_types=1);

use Symfony\Component\Dotenv\Dotenv;

require dirname(__DIR__).'/vendor/autoload.php';
require dirname(__DIR__) . '/vendor/autoload.php';

if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {
require dirname(__DIR__).'/config/bootstrap.php';
if (file_exists(dirname(__DIR__) . '/config/bootstrap.php')) {
require dirname(__DIR__) . '/config/bootstrap.php';
} elseif (method_exists(Dotenv::class, 'bootEnv')) {
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
(new Dotenv())->bootEnv(dirname(__DIR__) . '/.env');
}