Tripal
Public Member Functions | List of all members
Tests\tripal_chado\fields\sbo__relationship_widgetTest Class Reference
Inheritance diagram for Tests\tripal_chado\fields\sbo__relationship_widgetTest:
Inheritance graph
[legend]
Collaboration diagram for Tests\tripal_chado\fields\sbo__relationship_widgetTest:
Collaboration graph
[legend]

Public Member Functions

 provideEntities ()
 
 testWidgetClassInitialization ()
 
 testWidgetForm ()
 
 testWidgetValidate_existing ()
 
 testWidgetValidate_create ()
 
 testWidgetValidate_nosubject ()
 
 testWidgetValidate_noobject ()
 
 testWidgetValidate_notype ()
 

Member Function Documentation

◆ provideEntities()

Tests\tripal_chado\fields\sbo__relationship_widgetTest::provideEntities ( )

Data Provider: provides entities matching important test cases.

Specifically, we will cover three relationship tables, which represent the diversity in the chado schema v1.3: organism_relationship: subject_id, type_id, object_id, stock_relationship: subject_id, type_id, object_id, value, rank, project_relationship: subject_project_id, type_id, object_project_id, rank.

Returns
Returns an array where each item to be tested has the paramaters needed for initializeWidgetClass(). Specfically, $bundle_name, $field_name, $widget_name, $entity_ids, $expect.

◆ testWidgetClassInitialization()

Tests\tripal_chado\fields\sbo__relationship_widgetTest::testWidgetClassInitialization ( )

Test that we can initialize the widget properly.

@group widget @group sbo__relationship

◆ testWidgetForm()

Tests\tripal_chado\fields\sbo__relationship_widgetTest::testWidgetForm ( )

Test the widget Form.

@group widget @group sbo__relationship

◆ testWidgetValidate_create()

Tests\tripal_chado\fields\sbo__relationship_widgetTest::testWidgetValidate_create ( )

Case: WidgetValidate on new relationship filled out properly.

@group widget @group sbo__relationship

◆ testWidgetValidate_existing()

Tests\tripal_chado\fields\sbo__relationship_widgetTest::testWidgetValidate_existing ( )

Case: WidgetValidate on existing relationship.

@group widget @group sbo__relationship

◆ testWidgetValidate_noobject()

Tests\tripal_chado\fields\sbo__relationship_widgetTest::testWidgetValidate_noobject ( )

Case: WidgetValidate on new relationship missing object. Missing defaults to current record.

@group widget @group sbo__relationship

◆ testWidgetValidate_nosubject()

Tests\tripal_chado\fields\sbo__relationship_widgetTest::testWidgetValidate_nosubject ( )

Case: WidgetValidate on new relationship missing subject. Missing defaults to current record.

@group widget @group sbo__relationship

◆ testWidgetValidate_notype()

Tests\tripal_chado\fields\sbo__relationship_widgetTest::testWidgetValidate_notype ( )

Case: WidgetValidate on new relationship missing type.

@group widget @group sbo__relationship


The documentation for this class was generated from the following file: