Files
Phraseanet/tests/databox/Field/DCES/databox_Field_DCES_PublisherTest.php
2012-04-14 12:07:49 +02:00

41 lines
968 B
PHP

<?php
require_once __DIR__ . '/../../../PhraseanetPHPUnitAbstract.class.inc';
/**
* Test class for databox_Field_DCES_Publisher.
* Generated by PHPUnit on 2011-07-11 at 15:33:40.
*/
class databox_Field_DCES_PublisherTest extends PhraseanetPHPUnitAbstract
{
/**
* @var databox_Field_DCES_Publisher
*/
protected $object;
public function setUp()
{
$this->object = new databox_Field_DCES_Publisher;
}
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());
}
}