From e9813b15921f0f642302f4f30d40a997328df523 Mon Sep 17 00:00:00 2001 From: Eduardo humberto Date: Tue, 5 Dec 2017 08:37:50 -0200 Subject: [PATCH] add test new field type --- tests/test-metadata.php | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/tests/test-metadata.php b/tests/test-metadata.php index 710454734..826767f2e 100644 --- a/tests/test-metadata.php +++ b/tests/test-metadata.php @@ -1,6 +1,7 @@ assertEquals( 9, sizeof( $Tainacan_Metadatas->fetch_field_types() ) ); -// } + function test_metadata_field_type_insert(){ + global $Tainacan_Metadatas; + $class = new RandomType; + $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 ){} } \ No newline at end of file