mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-10 02:14:31 +02:00
Fixed PHPunit tests
This commit is contained in:
parent
f265b9d19d
commit
879b702fc1
3 changed files with 11 additions and 5 deletions
|
@ -45,7 +45,9 @@ class StructuralElementFromNameDenormalizerTest extends WebTestCase
|
|||
$this->assertFalse($this->service->supportsDenormalization('doesnt_matter', \stdClass::class));
|
||||
$this->assertFalse($this->service->supportsDenormalization(['a' => 'b'], Category::class));
|
||||
|
||||
$this->assertTrue($this->service->supportsDenormalization('doesnt_matter', Category::class));
|
||||
//The denormalizer should only be active, when we are doing a file import operation
|
||||
$this->assertFalse($this->service->supportsDenormalization('doesnt_matter', Category::class));
|
||||
$this->assertTrue($this->service->supportsDenormalization('doesnt_matter', Category::class, 'json', ['partdb_import' => true]));
|
||||
}
|
||||
|
||||
public function testDenormalizeCreateNew(): void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue