mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
PHRAS-2815_generate-cterms-multi-db_4.1
fix unit test
This commit is contained in:
@@ -36,6 +36,7 @@ class StructureTest extends \PHPUnit_Framework_TestCase
|
|||||||
$field->isFacet()->willReturn(false);
|
$field->isFacet()->willReturn(false);
|
||||||
$field->hasConceptInference()->willReturn(false);
|
$field->hasConceptInference()->willReturn(false);
|
||||||
$field->getDependantCollections()->willReturn(['1']);
|
$field->getDependantCollections()->willReturn(['1']);
|
||||||
|
$field->get_databox_id()->willReturn('1');
|
||||||
|
|
||||||
$structure->add($field->reveal());
|
$structure->add($field->reveal());
|
||||||
$this->assertCount(1, $structure->getAllFields());
|
$this->assertCount(1, $structure->getAllFields());
|
||||||
@@ -60,6 +61,7 @@ class StructureTest extends \PHPUnit_Framework_TestCase
|
|||||||
$field->isPrivate()->willReturn(false);
|
$field->isPrivate()->willReturn(false);
|
||||||
$field->isFacet()->willReturn(false);
|
$field->isFacet()->willReturn(false);
|
||||||
$field->hasConceptInference()->willReturn(false);
|
$field->hasConceptInference()->willReturn(false);
|
||||||
|
$field->get_databox_id()->willReturn('1');
|
||||||
|
|
||||||
$other = new Field('foo', FieldMapping::TYPE_STRING);
|
$other = new Field('foo', FieldMapping::TYPE_STRING);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user