removed some classes sufix
This commit is contained in:
parent
b18962df06
commit
c26f7e6d5e
|
@ -9,7 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
/**
|
||||
* Class TainacanFieldType
|
||||
*/
|
||||
class Checkbox_Field_Type extends Field_Type {
|
||||
class Checkbox extends Field_Type {
|
||||
|
||||
function __construct(){
|
||||
$this->primitive_type = 'date';
|
|
@ -9,7 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
/**
|
||||
* Class TainacanFieldType
|
||||
*/
|
||||
class Textarea_Field_Type extends Field_Type {
|
||||
class Textarea extends Field_Type {
|
||||
|
||||
function __construct(){
|
||||
$this->primitive_type = 'date';
|
|
@ -9,7 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
/**
|
||||
* Class TainacanFieldType
|
||||
*/
|
||||
class Numeric_Field_Type extends Field_Type {
|
||||
class Numeric extends Field_Type {
|
||||
|
||||
function __construct(){
|
||||
$this->primitive_type = 'float';
|
|
@ -9,7 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
/**
|
||||
* Class TainacanFieldType
|
||||
*/
|
||||
class Radio_Field_Type extends Field_Type {
|
||||
class Radio extends Field_Type {
|
||||
|
||||
function __construct(){
|
||||
$this->primitive_type = '';
|
|
@ -9,7 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
/**
|
||||
* Class TainacanFieldType
|
||||
*/
|
||||
class Relationship_Field_Type extends Field_Type {
|
||||
class Relationship extends Field_Type {
|
||||
|
||||
function __construct(){
|
||||
$this->primitive_type = '';
|
|
@ -9,7 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
/**
|
||||
* Class TainacanFieldType
|
||||
*/
|
||||
class Selectbox_Field_Type extends Field_Type {
|
||||
class Selectbox extends Field_Type {
|
||||
|
||||
function __construct(){
|
||||
$this->primitive_type = '';
|
|
@ -9,7 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
/**
|
||||
* Class TainacanFieldType
|
||||
*/
|
||||
class Text_Field_Type extends Field_Type {
|
||||
class Text extends Field_Type {
|
||||
|
||||
function __construct(){
|
||||
$this->primitive_type = 'string';
|
|
@ -9,7 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
/**
|
||||
* Class TainacanFieldType
|
||||
*/
|
||||
class Field_Type extends Field_Type {
|
||||
class Textarea extends Field_Type {
|
||||
|
||||
function __construct(){
|
||||
$this->primitive_type = 'string';
|
|
@ -7,8 +7,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
|
||||
/**
|
||||
* Class TainacanFieldType
|
||||
* List_Filter because List is reseved
|
||||
*/
|
||||
class List_Filter_Type extends Filter_Type {
|
||||
class List_Filter extends Filter_Type {
|
||||
|
||||
function __construct(){
|
||||
$this->supported_types[] = 'string';
|
|
@ -9,7 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
/**
|
||||
* Class TainacanFieldType
|
||||
*/
|
||||
class Range_Filter_Type extends Filter_Type {
|
||||
class Range extends Filter_Type {
|
||||
|
||||
function __construct(){
|
||||
$this->supported_types = ['float','date'];
|
|
@ -42,9 +42,9 @@ class Filters extends \WP_UnitTestCase {
|
|||
$collection = new \Tainacan\Entities\Collection();
|
||||
$metadata = new \Tainacan\Entities\Metadata();
|
||||
$filter = new \Tainacan\Entities\Filter();
|
||||
$type = new \Tainacan\Field_Types\Text_Field_Type();
|
||||
$filter_list_type = new \Tainacan\Filter_Types\List_Filter_Type();
|
||||
$filter_range_type = new \Tainacan\Filter_Types\Range_Filter_Type();
|
||||
$type = new \Tainacan\Field_Types\Text();
|
||||
$filter_list_type = new \Tainacan\Filter_Types\List_Filter();
|
||||
$filter_range_type = new \Tainacan\Filter_Types\Range();
|
||||
|
||||
$collection->set_name('teste');
|
||||
$collection = $Tainacan_Collections->insert($collection);
|
||||
|
|
|
@ -49,7 +49,7 @@ class Metadata extends \WP_UnitTestCase {
|
|||
|
||||
$collection = new \Tainacan\Entities\Collection();
|
||||
$metadata = new \Tainacan\Entities\Metadata();
|
||||
$type = new \Tainacan\Field_Types\Text_Field_Type();
|
||||
$type = new \Tainacan\Field_Types\Text();
|
||||
|
||||
$collection->set_name('teste');
|
||||
$collection = $Tainacan_Collections->insert($collection);
|
||||
|
@ -67,7 +67,7 @@ class Metadata extends \WP_UnitTestCase {
|
|||
|
||||
$this->assertEquals($test->get_name(), 'metadado');
|
||||
$this->assertEquals($test->get_collection_id(), $collection->get_id());
|
||||
$this->assertEquals('Tainacan\Field_Types\Text_Field_Type', $test->get_field_type());
|
||||
$this->assertEquals('Tainacan\Field_Types\Text', $test->get_field_type());
|
||||
$this->assertEquals($test->get_field_type_object(), $type);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue