package GlotPress
inherited_from \GP_UnitTestCase

 Methods

clean_up_global_scope()

clean_up_global_scope() 
Inherited

create_factory()

create_factory($field_names = array(), $defaults = array()

Parameters

$field_names

$defaults

setUp()

setUp() 
Inherited

set_admin_user_as_current()

set_admin_user_as_current() 
Inherited

set_normal_user_as_current()

set_normal_user_as_current() 
Inherited

test_factory_for_thing_create_should_call_create_once()

test_factory_for_thing_create_should_call_create_once() 

test_factory_for_thing_create_should_use_function_generator()

test_factory_for_thing_create_should_use_function_generator() 

test_factory_for_thing_generate_args_should_not_touch_args_if_different_generation_defintions()

test_factory_for_thing_generate_args_should_not_touch_args_if_different_generation_defintions() 

test_factory_for_thing_generate_args_should_not_touch_args_if_no_generation_definitions()

test_factory_for_thing_generate_args_should_not_touch_args_if_no_generation_definitions() 

test_factory_for_thing_generate_args_should_return_error_on_bad_default_value()

test_factory_for_thing_generate_args_should_return_error_on_bad_default_value() 

test_factory_for_thing_generate_args_should_set_undefined_scalar_values()

test_factory_for_thing_generate_args_should_set_undefined_scalar_values() 

test_factory_for_thing_generate_args_should_use_default_generator_definition_if_non_given()

test_factory_for_thing_generate_args_should_use_default_generator_definition_if_non_given() 

test_factory_for_thing_generate_args_should_use_generator()

test_factory_for_thing_generate_args_should_use_generator() 

test_factory_for_thing_should_construct_with_factory_and_thing_object()

test_factory_for_thing_should_construct_with_factory_and_thing_object() 

test_generator_locale_name_should_generate_consecutive_values()

test_generator_locale_name_should_generate_consecutive_values() 

test_generator_locale_name_should_start_with_aa()

test_generator_locale_name_should_start_with_aa() 

test_generator_sequence_should_generate_consecutive_values()

test_generator_sequence_should_generate_consecutive_values() 

test_generator_sequence_should_generate_consecutive_values_in_template()

test_generator_sequence_should_generate_consecutive_values_in_template() 

test_generator_sequence_should_include_value_in_template()

test_generator_sequence_should_include_value_in_template() 

test_generator_sequence_should_start_with_1()

test_generator_sequence_should_start_with_1() 

test_generator_sequence_should_start_with_2()

test_generator_sequence_should_start_with_2() 

create_thing_mock_with_name_field_and_with_create_which_should_be_called_once_with()

create_thing_mock_with_name_field_and_with_create_which_should_be_called_once_with($expected_create_args) 

Parameters

$expected_create_args

create_thing_stub_with_name_and_full_name_which_on_create_returns_mock_whose_save_should_be_called_with()

create_thing_stub_with_name_and_full_name_which_on_create_returns_mock_whose_save_should_be_called_with($create_args, $expected_save_args) 

Parameters

$create_args

$expected_save_args

 Properties

 

$factory

$factory : \GP_UnitTest_Factory

Default

 

$url

$url : string

Default

'http://example.org/'