Development

Changeset 6491

You must first sign up to be able to contribute.

Changeset 6491

Show
Ignore:
Timestamp:
12/13/07 22:58:18 (9 months ago)
Author:
fabien
Message:

fixed sfComponentTest unit test warnings

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/test/unit/action/sfComponentTest.php

    r5857 r6491  
    2626// ->initialize() 
    2727$t->diag('->initialize()'); 
    28 $component = new myComponent($context); 
     28$component = new myComponent($context, 'module', 'action'); 
    2929$t->is($component->getContext(), $context, '->initialize() takes a sfContext object as its first argument'); 
    30 $component->initialize($context); 
     30$component->initialize($context, 'module', 'action'); 
    3131$t->is($component->getContext(), $context, '->initialize() takes a sfContext object as its first argument'); 
    3232 
    3333// ->getContext() 
    3434$t->diag('->getContext()'); 
    35 $component->initialize($context); 
     35$component->initialize($context, 'module', 'action'); 
    3636$t->is($component->getContext(), $context, '->getContext() returns the current context'); 
    3737 
    3838// ->getRequest() 
    3939$t->diag('->getRequest()'); 
    40 $component->initialize($context); 
     40$component->initialize($context, 'module', 'action'); 
    4141$t->is($component->getRequest(), $context->getRequest(), '->getRequest() returns the current request'); 
    4242 
    4343// ->getResponse() 
    4444$t->diag('->getResponse()'); 
    45 $component->initialize($context); 
     45$component->initialize($context, 'module', 'action'); 
    4646$t->is($component->getResponse(), $context->getResponse(), '->getResponse() returns the current response'); 
    4747