Changeset 1627

Show
Ignore:
Timestamp:
02/22/10 14:44:21 (5 months ago)
Author:
klemens
Message:

Added test for UllFlowAppTable::findAllOrderByName()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/ullFlowPlugin/UllFlowAppTableTest.php

    r818 r1627  
    1010sfContext::createInstance($configuration); 
    1111 
    12 $t = new myTestCase(4, new lime_output_color, $configuration); 
     12$t = new myTestCase(7, new lime_output_color, $configuration); 
    1313$path = dirname(__FILE__); 
    1414$t->setFixturesPath($path); 
     
    3333  $t->isa_ok($app, 'UllFlowApp', 'returns the correct object'); 
    3434  $t->is($app->label, 'Trouble ticket tool', 'return the correct label'); 
     35   
     36   
     37$t->diag('findAllOrderByLabel'); 
     38 
     39  $apps = UllFlowAppTable::findAllOrderByName(); 
     40 
     41  $t->is(count($apps), 2, 'Returns the correct number of results'); 
     42  $t->is($apps[0]['slug'], 'todo', 'Returns the correct result at the correct position'); 
     43  $t->is($apps[1]['slug'], 'trouble_ticket', 'Returns the correct result at the correct position');