Merge branch 'master' of https://github.com/tainacan/tainacan
This commit is contained in:
commit
ff0fd7ba8e
|
@ -1,6 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Tainacan\Tests;
|
namespace Tainacan\Tests;
|
||||||
|
use Tainacan\Field_Types;
|
||||||
/**
|
/**
|
||||||
* Class Metadata
|
* Class Metadata
|
||||||
*
|
*
|
||||||
|
@ -177,9 +178,26 @@ class Metadata extends TAINACAN_UnitTestCase {
|
||||||
/**
|
/**
|
||||||
* test if the defaults types are registered
|
* test if the defaults types are registered
|
||||||
*/
|
*/
|
||||||
// function test_metadata_field_type_insert(){
|
function test_metadata_field_type_insert(){
|
||||||
// global $Tainacan_Metadatas;
|
global $Tainacan_Metadatas;
|
||||||
// $class = new \;
|
$class = new RandomType;
|
||||||
// $this->assertEquals( 9, sizeof( $Tainacan_Metadatas->fetch_field_types() ) );
|
$this->assertEquals( 9, sizeof( $Tainacan_Metadatas->fetch_field_types() ) );
|
||||||
// }
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class TainacanFieldType
|
||||||
|
*/
|
||||||
|
class RandomType extends Field_Types\Field_Type {
|
||||||
|
|
||||||
|
function __construct(){
|
||||||
|
parent::__construct();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param $metadata
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
|
||||||
|
public function render( $metadata ){}
|
||||||
}
|
}
|
Loading…
Reference in New Issue