Permalink
Browse files

fix unit test for sfPropelFormGenerator to check 475ef23

  • Loading branch information...
1 parent 475ef23 commit 06d66492d1ac8c79254d6c39eb18c31f0d7a578c @Tschebel Tschebel committed Nov 7, 2013
Showing with 6 additions and 6 deletions.
  1. +6 −6 test/functional/formTest.php
@@ -296,17 +296,17 @@
$form = new SellerForm();
try {
$form->getWidget('sale_list');
- $b->test()->fail('The seller form shoud not has sale_list field because it is not a many to many relation');
+ $b->test()->pass('The seller form should have sale_list field because it is a many to many relation');
} catch (InvalidArgumentException $e) {
- $b->test()->pass('The seller form shoud not has sale_list field because it is not a many to many relation');
+ $b->test()->fail('The seller form should have sale_list field because it is a many to many relation');
}
$form = new BookForm();
try {
$form->getWidget('sale_list');
- $b->test()->fail('The book form shoud not has sale_list field because it is not a many to many relation');
+ $b->test()->pass('The book form should have sale_list field because it is a many to many relation');
} catch (InvalidArgumentException $e) {
- $b->test()->pass('The book form shoud not has sale_list field because it is not a many to many relation');
+ $b->test()->fail('The book form should have sale_list field because it is a many to many relation');
}
$form = new SellerForm();
@@ -318,8 +318,8 @@
$tooMany->setManyRelatedByManyfkCrossId($many);
$tooMany->setManyRelatedByManyfkId($many2);
$many->save();
-$form = new ManyForm($many);
-$b->test()->isa_ok($form->getWidget('too_many_list'), 'sfWidgetFormPropelChoice', 'The Many form should have a sfWidgetFormPropelChoice of Many when there is a isCrossRef on a middle table');
+$form = new ManyForm($many);
+$b->test()->isa_ok($form->getWidget('too_many_list'), 'sfWidgetFormPropelChoice', 'The Many form should have a sfWidgetFormPropelChoice of Many when there is a isCrossRef on a middle table');
try {
// PHP Fatal if it fail

0 comments on commit 06d6649

Please sign in to comment.