mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-06 02:59:29 +00:00
Fixed tests
This commit is contained in:
parent
0d49632b92
commit
1d52b7c464
4 changed files with 63 additions and 63 deletions
|
|
@ -51,14 +51,14 @@ class ElementTypeNameGeneratorTest extends WebTestCase
|
|||
//We only test in english
|
||||
$this->assertSame('Part', $this->service->getLocalizedTypeLabel(new Part()));
|
||||
$this->assertSame('Category', $this->service->getLocalizedTypeLabel(new Category()));
|
||||
$this->assertSame('Bulk Info Provider Import', $this->service->getLocalizedTypeLabel(new BulkInfoProviderImportJob()));
|
||||
$this->assertSame('Bulk info provider import', $this->service->getLocalizedTypeLabel(new BulkInfoProviderImportJob()));
|
||||
|
||||
//Test inheritance
|
||||
$this->assertSame('Attachment', $this->service->getLocalizedTypeLabel(new PartAttachment()));
|
||||
|
||||
//Test for class name
|
||||
$this->assertSame('Part', $this->service->getLocalizedTypeLabel(Part::class));
|
||||
$this->assertSame('Bulk Info Provider Import', $this->service->getLocalizedTypeLabel(BulkInfoProviderImportJob::class));
|
||||
$this->assertSame('Bulk info provider import', $this->service->getLocalizedTypeLabel(BulkInfoProviderImportJob::class));
|
||||
|
||||
//Test exception for unknpwn type
|
||||
$this->expectException(EntityNotSupportedException::class);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue