Fixed PHPunit tests

This commit is contained in:
Jan Böhmer 2023-08-28 22:47:15 +02:00
parent f265b9d19d
commit 879b702fc1
3 changed files with 11 additions and 5 deletions

View file

@ -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