Skip to content

Commit

Permalink
UHF-10891: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tuutti committed Oct 28, 2024
1 parent ae40232 commit ddd281e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/src/Kernel/TransliterateFilesCommandsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Drupal\Tests\field\Kernel\FieldKernelTestBase;
use Drupal\helfi_azure_fs\AzureFileSystem;
use Drupal\helfi_azure_fs\Drush\Commands\TransliterateFilesCommands;
use Drupal\Tests\helfi_api_base\Traits\ApiTestTrait;

/**
* Tests transliterate file Drush command.
Expand All @@ -16,6 +17,8 @@
*/
class TransliterateFilesCommandsTest extends FieldKernelTestBase {

use ApiTestTrait;

/**
* {@inheritdoc}
*/
Expand Down Expand Up @@ -72,12 +75,7 @@ public function testTransliterateFilesCommand() : void {
'replacement_character' => '_',
])->save();

$command = new TransliterateFilesCommands(
$this->container->get('stream_wrapper_manager'),
$this->container->get('event_dispatcher'),
$this->container->get('entity_type.manager'),
$fileSystem,
);
$command = TransliterateFilesCommands::create($this->container);
$command->transliterate();

foreach ($files as $expected) {
Expand Down

0 comments on commit ddd281e

Please sign in to comment.