Drop SQLite support (#2405)

This commit is contained in:
Kevin Papst
2021-03-08 16:06:22 +01:00
committed by GitHub
parent 70f7f35009
commit 30ac5e4c24
78 changed files with 1165 additions and 1596 deletions

View File

@@ -88,9 +88,9 @@ class TimesheetRepositoryTest extends AbstractRepositoryTest
$fixture = new TimesheetFixtures();
$fixture->setUser($user);
$fixture->setAmountRunning(1);
$this->importFixture($fixture);
$timesheets = $this->importFixture($fixture);
$timesheet = $repository->find(1);
$timesheet = $timesheets[0];
$this->assertInstanceOf(Timesheet::class, $timesheet);
$this->assertNull($timesheet->getEnd());
@@ -123,7 +123,7 @@ class TimesheetRepositoryTest extends AbstractRepositoryTest
$this->assertNull($timesheet->getId());
$repository->save($timesheet);
$this->assertEquals(1, $timesheet->getId());
$this->assertNotNull($timesheet->getId());
}
public function testSaveWithTags()
@@ -156,11 +156,11 @@ class TimesheetRepositoryTest extends AbstractRepositoryTest
$this->assertNull($timesheet->getId());
$repository->save($timesheet);
$this->assertEquals(1, $timesheet->getId());
$this->assertNotNull($timesheet->getId());
$this->assertEquals(2, $timesheet->getTags()->count());
$this->assertEquals('Travel', $timesheet->getTags()->get(0)->getName());
$this->assertEquals(1, $timesheet->getTags()->get(0)->getId());
$this->assertNotNull($timesheet->getTags()->get(0)->getId());
$this->assertEquals('Picture', $timesheet->getTags()->get(1)->getName());
$this->assertEquals(2, $timesheet->getTags()->get(1)->getId());
$this->assertNotNull($timesheet->getTags()->get(1)->getId());
}
}