package GlotPress
inherited_from \GP_UnitTestCase

 Methods

_assertError()

_assertError($assert, $error, $original, $translation, $gp_original = null, $locale = null

Parameters

$assert

$error

$original

$translation

$gp_original

$locale

assertContainsOutput()

assertContainsOutput($singular, $plural, $translations, $comment, $output_expected, $locale = null

Parameters

$singular

$plural

$translations

$comment

$output_expected

$locale

assertHasErrors()

assertHasErrors($error, $original, $translation, $gp_original, $locale = null

Parameters

$error

$original

$translation

$gp_original

$locale

assertHasErrorsAndContainsOutput()

assertHasErrorsAndContainsOutput($error, $original, $translation, $gp_original, $output_expected, $locale = null

Parameters

$error

$original

$translation

$gp_original

$output_expected

$locale

assertNoErrors()

assertNoErrors($error, $original, $translation, $gp_original = null, $locale = null

Parameters

$error

$original

$translation

$gp_original

$locale

clean_up_global_scope()

clean_up_global_scope() 
Inherited

setUp()

setUp() 
inherited_from \GP_UnitTestCase::setUp()

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_error_unexpected_sprintf_token()

test_error_unexpected_sprintf_token() 

 Properties

 

$factory

$factory : \GP_UnitTest_Factory

Default

 

$url

$url : string

Default

'http://example.org/'