[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/tests/ -> componentlib_test.php (summary)

Unit tests for /lib/componentlib.class.php.

Copyright: 2011 Tomasz Muras
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 185 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

core_componentlib_testcase:: (2 methods):
  test_component_installer()
  test_lang_installer()

testable_lang_installer:: (4 methods):
  protected_is_queued()
  protected_add_to_queue()
  install_language_pack()
  get_parent_language()


Class: core_componentlib_testcase  - X-Ref

test_component_installer()   X-Ref
No description

test_lang_installer()   X-Ref
Test the public API of the {@link lang_installer} class.


Class: testable_lang_installer  - X-Ref

Testable lang_installer subclass that does not actually install anything
and provides access to the protected methods of the parent class

protected_is_queued($langcode = '')   X-Ref


protected_add_to_queue($langcodes)   X-Ref


install_language_pack($langcode)   X-Ref
Simulate lang pack installation via component_installer.

Language packages 'de_du' and 'de_kids' reported as installed
Language packages 'cs' and 'de' reported as up-to-date
Language package 'xx' returns download error
All other language packages will throw an unknown exception


get_parent_language($langcode)   X-Ref
Simulate detection of parent language.




Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1