Page MenuHomeIn-Portal Phabricator

INP-1567 - Register missing classes in class factory
ClosedPublic

Authored by alex on Jun 21 2016, 3:42 AM.

Details

Test Plan

Preparations

  1. copy over /index.php into /autoloading_test.php
  2. in /autoloading_test.php file: replace all code that comes after $application->Init(); line with $object = new ClassNameHere();

Actual Test

Tested classes:

  • UnitConfigDecorator
  • kSubscriptionItem
  • clsCachedPermissions
  • clsRecursionStack
  • kXMLNode
  • kXMLNode5
  • XMLIterator
  • _BlockTag
  • _Tag_Comment
  • _Tag_DefineElement
  • _Tag_Capture
  • _Tag_RenderElement
  • _Tag_RenderElements
  • _Tag_Param
  • _Tag_Include
  • _Tag_If
  • _Tag_IfNot
  • _Tag_DefaultParam
  • _Tag_SetParam
  • _Tag_Cache
  • _Tag_IfDataExists
  • _Tag_Compress
  • kSubscriptionAnalyzer
  • UsersSyncronize

Change /autoloading_test.php and:

  • replace ClassNameHere with tested class
  • if that class needs constructor parameters put any that matches typehint
  • open /autoloading_test.php file from CLI or Web
  • confirm, that class instance was created and no error happened

Diff Detail

Repository
rINP In-Portal
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

alex updated this revision to Diff 542.Jun 21 2016, 3:42 AM
alex retitled this revision from to INP-1567 - Register missing classes in class factory.
alex updated this object.
alex edited the test plan for this revision. (Show Details)
alex added 1 JIRA issue(s): INP-1567.
alex edited the test plan for this revision. (Show Details)Jun 21 2016, 3:48 AM
alex edited edge metadata.
erik accepted this revision.Jun 22 2016, 4:58 AM
erik edited edge metadata.
This revision is now accepted and ready to land.Jun 22 2016, 4:58 AM
This revision was automatically updated to reflect the committed changes.