Adjust assertion to handle environmental influence, e.g. CWP default records

This commit is contained in:
Robbie Averill 2018-03-23 13:31:38 +13:00 committed by Daniel Hensby
parent 453a35e114
commit 8ae3e4a041
No known key found for this signature in database
GPG Key ID: D8DEBC4C8E7BC8B9
1 changed files with 1 additions and 1 deletions

View File

@ -381,7 +381,7 @@ class UserDefinedFormTest extends FunctionalTest
/** @var UserDefinedForm $form */
$form = $this->objFromFixture(UserDefinedForm::class, 'form-with-multioptions');
$this->assertCount(2, $form->Fields(), 'Fixtured page has one field plus one form step');
$this->assertGreaterThanOrEqual(1, $form->Fields()->count(), 'Fixtured page has a field');
$this->assertCount(
2,
$form->Fields()->Last()->Options(),