mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 20:13:28 +00:00
35 lines
930 B
PHP
35 lines
930 B
PHP
<?php
|
|
|
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
|
|
|
class databox_Field_DCES_FormatTest extends PhraseanetPHPUnitAbstract
|
|
{
|
|
/**
|
|
* @var databox_Field_DCES_Format
|
|
*/
|
|
protected $object;
|
|
|
|
public function setUp()
|
|
{
|
|
parent::setUp();
|
|
$this->object = new databox_Field_DCES_Format;
|
|
}
|
|
|
|
public function testGet_label()
|
|
{
|
|
$name = str_replace('Test', '', array_pop(explode('_', __CLASS__)));
|
|
$this->assertEquals($name, $this->object->get_label());
|
|
}
|
|
|
|
public function testGet_definition()
|
|
{
|
|
$this->assertTrue(is_string($this->object->get_definition()));
|
|
$this->assertTrue(strlen($this->object->get_definition()) > 20);
|
|
}
|
|
|
|
public function testGet_documentation_link()
|
|
{
|
|
$this->assertRegExp('/^http:\/\/dublincore\.org\/documents\/dces\/#[a-z]+$/', $this->object->get_documentation_link());
|
|
}
|
|
}
|