Class: Bp3::Core::Test

Inherits:
Object
  • Object
show all
Includes:
Cookies, Displayable, FeatureFlags, Ransackable, Rqid, Sqnr, Tenantable
Defined in:
lib/bp3/core/test.rb

Overview

Bp3::Core::Test provides a convenience class for testing Bp3::Core

Constant Summary

Constants included from Cookies

Cookies::DO_NOT_TRACK_VALUE, Cookies::VISITOR_COOKIE_NAME_PREFIX

Class Method Summary collapse

Methods included from Tenantable

#set_sites_site_id, #set_tenant_id, #set_workspaces_workspace_id, #tenant_matches_site, #workspaces_workspace_matches_site

Methods included from Rqid

global_request_state_class, #rqid_from_global_state, #set_rqid

Methods included from FeatureFlags

#cfon, #cfon?, #efcfon?, #efon, #efon?

Methods included from Displayable

#admin_display_name, #display_name, #filter, #filter_attributes, #filter_object_fields, #filtered_attributes, #i18n_key, #mark_changes_as_filtered, #to_dom_id, #version_filter_mask

Methods included from Cookies

#check_new_visitor_cookie, #check_old_visitor_cookie, #check_visitor_cookie, #cookie_site_id, #cookie_tenant_id, #create_visitor, #do_not_track, #new_visitor_cookie_name, #set_do_not_track, #start_tracking, #switch_old_to_new, #visitor_cookie_name

Class Method Details

.before_action(_method_name) ⇒ Object

to test Cookies first define this:



20
# File 'lib/bp3/core/test.rb', line 20

def self.before_action(_method_name); end

.before_create(_method_name) ⇒ Object

to test Rqid first define this:



32
# File 'lib/bp3/core/test.rb', line 32

def self.before_create(_method_name); end

.belongs_to(_association, **options) ⇒ Object



33
# File 'lib/bp3/core/test.rb', line 33

def self.belongs_to(_association, **options); end

.column_namesObject



10
11
12
# File 'lib/bp3/core/test.rb', line 10

def self.column_names
  %i[id name]
end

.connectionObject

to test Tenantable first define this:



43
# File 'lib/bp3/core/test.rb', line 43

def self.connection; end

.reflect_on_all_associationsObject



14
15
16
# File 'lib/bp3/core/test.rb', line 14

def self.reflect_on_all_associations
  []
end

.scope(_scope_name, _lambda) ⇒ Object



34
# File 'lib/bp3/core/test.rb', line 34

def self.scope(_scope_name, _lambda); end