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

@@ -38,13 +38,6 @@ class TagRepositoryTest extends AbstractRepositoryTest
$this->assertIsArray($result);
$this->assertNotEmpty($result);
$this->assertEquals(7, \count($result));
$this->assertEquals(1, $result[0]);
$this->assertEquals(3, $result[1]);
$this->assertEquals(4, $result[2]);
$this->assertEquals(5, $result[3]);
$this->assertEquals(6, $result[4]);
$this->assertEquals(7, $result[5]);
$this->assertEquals(11, $result[6]);
}
public function testFindNoIds()

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());
}
}