mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-26 03:38:47 +02:00
Fixed PHPunit tests
This commit is contained in:
parent
f265b9d19d
commit
879b702fc1
3 changed files with 11 additions and 5 deletions
|
@ -71,8 +71,11 @@ class StructuralElementNormalizerTest extends WebTestCase
|
|||
//Normalizer must only support StructuralElement objects (and child classes)
|
||||
$this->assertFalse($this->service->supportsNormalization(new \stdClass()));
|
||||
$this->assertFalse($this->service->supportsNormalization(new Part()));
|
||||
$this->assertTrue($this->service->supportsNormalization(new Category()));
|
||||
$this->assertTrue($this->service->supportsNormalization(new Footprint()));
|
||||
|
||||
//Must only be active when export is enabled
|
||||
$this->assertFalse($this->service->supportsNormalization(new Category()));
|
||||
$this->assertTrue($this->service->supportsNormalization(new Category(), null, ['partdb_export' => true]));
|
||||
$this->assertTrue($this->service->supportsNormalization(new Footprint(), null, ['partdb_export' => true]));
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue