mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-06 11:09:29 +00:00
Fixed phpunit tests
This commit is contained in:
parent
1bfea3c48a
commit
df65f39d5e
1 changed files with 2 additions and 2 deletions
|
|
@ -479,7 +479,7 @@ class LCSCProviderTest extends TestCase
|
||||||
'productIntroEn' => 'Test description',
|
'productIntroEn' => 'Test description',
|
||||||
'brandNameEn' => 'Test Manufacturer',
|
'brandNameEn' => 'Test Manufacturer',
|
||||||
'parentCatalogName' => 'Electronic Components',
|
'parentCatalogName' => 'Electronic Components',
|
||||||
'catalogName' => 'Resistors/SMT',
|
'catalogName' => 'Resistors (SMT)',
|
||||||
'encapStandard' => '0603',
|
'encapStandard' => '0603',
|
||||||
'productImageUrl' => null,
|
'productImageUrl' => null,
|
||||||
'productImages' => [],
|
'productImages' => [],
|
||||||
|
|
@ -493,7 +493,7 @@ class LCSCProviderTest extends TestCase
|
||||||
$this->httpClient->setResponseFactory([$mockResponse]);
|
$this->httpClient->setResponseFactory([$mockResponse]);
|
||||||
|
|
||||||
$result = $this->provider->getDetails('C123456');
|
$result = $this->provider->getDetails('C123456');
|
||||||
$this->assertEquals('Electronic Components -> Resistors -> SMT', $result->category);
|
$this->assertEquals('Electronic Components -> Resistors (SMT)', $result->category);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testEmptyFootprintHandling(): void
|
public function testEmptyFootprintHandling(): void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue