mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-29 22:30:01 +02:00
Run phpunit code quality rector
This commit is contained in:
parent
f215bd11cd
commit
f3ad3c1ffe
15 changed files with 66 additions and 70 deletions
|
@ -47,7 +47,7 @@ class TimeTravelTest extends KernelTestCase
|
|||
$undeletedCategory = $this->service->undeleteEntity(Category::class, 100);
|
||||
|
||||
$this->assertInstanceOf(Category::class, $undeletedCategory);
|
||||
$this->assertEquals(100, $undeletedCategory->getId());
|
||||
$this->assertSame(100, $undeletedCategory->getId());
|
||||
}
|
||||
|
||||
public function testApplyEntry(): void
|
||||
|
@ -65,8 +65,8 @@ class TimeTravelTest extends KernelTestCase
|
|||
|
||||
$this->service->applyEntry($category, $logEntry);
|
||||
|
||||
$this->assertEquals('Old Category', $category->getName());
|
||||
$this->assertEquals('Old Comment', $category->getComment());
|
||||
$this->assertSame('Old Category', $category->getName());
|
||||
$this->assertSame('Old Comment', $category->getComment());
|
||||
}
|
||||
|
||||
public function testRevertEntityToTimestamp(): void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue