Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
dhirtzbruch committed Nov 20, 2023
1 parent d4d8e0d commit 5e7a1f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/EntityImporterManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ public function getImporterDefinitions(): array
*/
public function import(string $name, callable $statusCallback, callable $errorCallback, ?int $limit): ImportResult
{
$start = new DateTime();
$start = new DateTime();
$definition = null;
try {
if (!$name) {
throw new InvalidArgumentException('Name must not be empty');
Expand Down
1 change: 1 addition & 0 deletions tests/unit/EntityImporterManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ public function testImportInvalidType(): void
self::assertSame([], $manager->getImporterDefinitions());
$manager->import('importer:def2:name', $this->statusCallback, $this->errorCallback, null);
}

public function testImportEmptyType(): void
{
$this->expectException(InvalidArgumentException::class);
Expand Down

0 comments on commit 5e7a1f7

Please sign in to comment.