improved timesheet importer (#2049)

This commit is contained in:
Kevin Papst
2020-10-21 11:44:07 +02:00
committed by GitHub
parent 032db11b48
commit 167a826f50
2 changed files with 223 additions and 70 deletions

View File

@@ -19,6 +19,7 @@ use App\Repository\TimesheetRepository;
use App\Repository\UserRepository;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface;
/**
* @covers \App\Command\ImportTimesheetCommand
@@ -43,8 +44,9 @@ class ImportTimesheetCommandTest extends KernelTestCase
$tagRepository = $this->createMock(TagRepository::class);
$timesheets = $this->createMock(TimesheetRepository::class);
$configuration = $this->createMock(SystemConfiguration::class);
$encoder = $this->createMock(UserPasswordEncoderInterface::class);
$this->application->add(new ImportTimesheetCommand($customers, $projects, $activities, $users, $tagRepository, $timesheets, $configuration));
$this->application->add(new ImportTimesheetCommand($customers, $projects, $activities, $users, $tagRepository, $timesheets, $configuration, $encoder));
}
public function testCommandName()