We're updating the issue view to help you get more done. 

Adding a group fails when no data is entered

Description

Steps

  • Run the provided Behat test, or add a group without entering a name or role

Error message

The property "roles" in class "Integrated\Bundle\UserBundle\Model\Group" can be defined with the methods "addRole()", "removeRole()" but the new value must be an array or an instance of \Traversable, "NULL" given.

Behat test

(example to add to features/group.feature, validator message may be different)

1 2 3 4 5 6 Scenario: Add group validations Given I am authenticated as "demo" And I am on "/admin/group/" When I follow "New" And I press "Create" Then I should see "This value should not be blank"

Environment

None

Deployment actions

None

Technical tasks

None

Status

Assignee

Unassigned

Reporter

Marijn Otte

Labels

Client

Integrated Marijn

External issue ID

None

Follow up date

None

Code reviewer

Jeroen van Leeuwen

Developer

Michael Jongman

Plan date

None

Max. hours

None

Error message

None

Min. hours

None

Product owner

Marijn Otte

Refiner

None

Switches

None

Dev hour estimate

None

Story Points

0.5

Time tracking

15m

Epic Link

Sprint

None

Fix versions

Priority

Major