-
Notifications
You must be signed in to change notification settings - Fork 130
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
test for vcard converter issue #173
Conversation
Please add this test to VCardConverterTest. IssueXXTest is a bad convention |
Updated. |
$vcard = Reader::read($input); | ||
|
||
$this->assertInstanceOf('Sabre\\VObject\\Component\\VCard', $vcard); | ||
$vcard = $vcard->convert(\Sabre\VObject\Document::VCARD40); |
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.
Simply using VObject\Document::VCARD40
might be valid here (because of the namespace).
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.
Not sure what is preferred here. It's not omitted anywhere in the test class.
Should probably be omitted everywhere or nowhere. :)
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.
Sorry, didn't check around this test case. Yes, it should be omitted everywhere ;-).
Build fails inside the converter class. |
Yup. |
Checking if
Don't think that would be the expected conversion. |
What is the expected value? |
The vCard 3.0 version had no (Anniversary) label property, so I wasn't sure about the vCard 4.0 representation as |
vCard converter fails for X-ABDATE properties that have no X-ABLABEL.
Thanks, @armin-hackmann! :-)