Changeset 6491
- Timestamp:
- 12/13/07 22:58:18 (9 months ago)
- Files:
-
- trunk/test/unit/action/sfComponentTest.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/test/unit/action/sfComponentTest.php
r5857 r6491 26 26 // ->initialize() 27 27 $t->diag('->initialize()'); 28 $component = new myComponent($context );28 $component = new myComponent($context, 'module', 'action'); 29 29 $t->is($component->getContext(), $context, '->initialize() takes a sfContext object as its first argument'); 30 $component->initialize($context );30 $component->initialize($context, 'module', 'action'); 31 31 $t->is($component->getContext(), $context, '->initialize() takes a sfContext object as its first argument'); 32 32 33 33 // ->getContext() 34 34 $t->diag('->getContext()'); 35 $component->initialize($context );35 $component->initialize($context, 'module', 'action'); 36 36 $t->is($component->getContext(), $context, '->getContext() returns the current context'); 37 37 38 38 // ->getRequest() 39 39 $t->diag('->getRequest()'); 40 $component->initialize($context );40 $component->initialize($context, 'module', 'action'); 41 41 $t->is($component->getRequest(), $context->getRequest(), '->getRequest() returns the current request'); 42 42 43 43 // ->getResponse() 44 44 $t->diag('->getResponse()'); 45 $component->initialize($context );45 $component->initialize($context, 'module', 'action'); 46 46 $t->is($component->getResponse(), $context->getResponse(), '->getResponse() returns the current response'); 47 47