mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 02:13:15 +00:00
removed useless tests
This commit is contained in:
@@ -20,7 +20,6 @@ class StructureTest extends \PHPUnit_Framework_TestCase
|
|||||||
$this->assertEmpty($structure->getAllFields());
|
$this->assertEmpty($structure->getAllFields());
|
||||||
$this->assertEmpty($structure->getUnrestrictedFields());
|
$this->assertEmpty($structure->getUnrestrictedFields());
|
||||||
$this->assertEmpty($structure->getPrivateFields());
|
$this->assertEmpty($structure->getPrivateFields());
|
||||||
$this->assertEmpty($structure->getFacetFields());
|
|
||||||
$this->assertEmpty($structure->getThesaurusEnabledFields());
|
$this->assertEmpty($structure->getThesaurusEnabledFields());
|
||||||
$this->assertEmpty($structure->getDateFields());
|
$this->assertEmpty($structure->getDateFields());
|
||||||
}
|
}
|
||||||
@@ -95,19 +94,6 @@ class StructureTest extends \PHPUnit_Framework_TestCase
|
|||||||
$this->assertNotContains($unrestricted_field, $private_fields);
|
$this->assertNotContains($unrestricted_field, $private_fields);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testGetFacetFields()
|
|
||||||
{
|
|
||||||
$facet = new Field('foo', FieldMapping::TYPE_STRING, ['facet' => Field::FACET_NO_LIMIT]);
|
|
||||||
$not_facet = new Field('bar', FieldMapping::TYPE_STRING, ['facet' => Field::FACET_DISABLED]);
|
|
||||||
$structure = new Structure();
|
|
||||||
$structure->add($facet);
|
|
||||||
$this->assertContains($facet, $structure->getFacetFields());
|
|
||||||
$structure->add($not_facet);
|
|
||||||
$facet_fields = $structure->getFacetFields();
|
|
||||||
$this->assertContains($facet, $facet_fields);
|
|
||||||
$this->assertNotContains($not_facet, $facet_fields);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testGetDateFields()
|
public function testGetDateFields()
|
||||||
{
|
{
|
||||||
$string = new Field('foo', FieldMapping::TYPE_STRING);
|
$string = new Field('foo', FieldMapping::TYPE_STRING);
|
||||||
|
|||||||
Reference in New Issue
Block a user