Skip to content
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

Merged
merged 14 commits into from
May 28, 2015
Merged

FieldType context #24

merged 14 commits into from
May 28, 2015

Conversation

miguelcleverti
Copy link
Contributor

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.

*/
public function createContentTypeWithRequiredFieldType( $fieldType, $name = null )
{
return $this->getFieldTypeManager()->createField( $fieldType, $name, true );
Copy link
Contributor

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?

Copy link
Member

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.

Copy link
Contributor

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 :)

@andrerom
Copy link
Contributor

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
Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@bdunogier
Copy link
Member

+1

andrerom added a commit that referenced this pull request May 28, 2015
@andrerom andrerom merged commit f0da6a0 into ezsystems:master May 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants