-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FieldType context #24
Conversation
Conflicts: Context/EzContext.php
*/ | ||
public function createContentTypeWithRequiredFieldType( $fieldType, $name = null ) | ||
{ | ||
return $this->getFieldTypeManager()->createField( $fieldType, $name, true ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't seem to do anything else then method above, missing something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One creates a required field, the other one a non-required one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I was missing the true
and thought the line where completely the same, indeed :)
with the comments here resolved I'm +1 |
*/ | ||
protected function destroy( ValueObject $object ) | ||
{ | ||
// do nothing for now, to be implemented later when decided waht to do with the created objects |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here can't be thrown an exception because this method is always called and that would make all the tests fail. This method is related to the created object removal and we decided to implement later because of the possible problems that creating objects with platformUI brings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
+1 |
FieldType
Base implementation for the FieldType sentences. Mostly prerequisites are implemented here on the Behat level, in conjunction with the PlatformUICore ezsystems/PlatformUIBundle#230 implements the sentences for the FieldTypes as in ezsystems/PlatformUIBundle#211.