This commit is contained in:
weryques 2017-12-05 10:29:48 -02:00
commit ff0fd7ba8e
1 changed files with 23 additions and 5 deletions

View File

@ -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 ){}
} }