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

Multivalue reference tests #146

Merged
merged 1 commit into from
Jan 27, 2015
Merged

Multivalue reference tests #146

merged 1 commit into from
Jan 27, 2015

Conversation

dantleech
Copy link
Member

Added multivalue reference test

public function setUp()
{
parent::setUp();
$this->renewSession(); // discard changes
Copy link
Member

Choose a reason for hiding this comment

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

do we still need this? i think the parent does that

Copy link
Member Author

Choose a reason for hiding this comment

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

Probably not.

$this->assertSame($referenced2, $this->node->getNode('other-node')->getProperty('reference')->getValue());
}

public function testMultiValueReference()

Choose a reason for hiding this comment

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

Seems like a data-provider rather than something to test separately, no?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah.. it should be a data provider, but unfortunately there is some strange magic which happens in this test suite where the fixtures are automatically loaded depending on the "name" of the test method being called - when we use data provider the "name" is returned as testMutlivalueWeakReference data set (array(foo, bar)) or something similar.

And the fixtures are loaded according to that name..

@dantleech
Copy link
Member Author

Updated.

dbu added a commit that referenced this pull request Jan 27, 2015
@dbu dbu merged commit 979dae7 into master Jan 27, 2015
@dbu dbu deleted the mixreferenceable branch January 27, 2015 15:57
@dbu
Copy link
Member

dbu commented Jan 27, 2015

hm, this broke even with jackalope/jackalope-doctrine-dbal#231 - i reverted the merge. can you please have another look?

@dantleech
Copy link
Member Author

ok .. so the other PR is ok and this test is broken?

@dbu
Copy link
Member

dbu commented Jan 27, 2015

i don't know. i assumed that both are fine, merged this and restarted the tests on the jackalope PR. then both jackalope dbal master and the PR had the same errors, so i am assuming the problem is with the changes in here. but could also be something went wrong and the tests are meant to fail without the fix, and the jackalope PR somehow does not correctly fix the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants