Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Conversation

dantleech
Copy link
Member

Refactored PhpcrProviderTestCase to use Prophecy.

@dantleech dantleech force-pushed the provider_test_prophecy branch from 67fc983 to 39782c2 Compare May 22, 2016 17:01
@dantleech dantleech changed the title Improved Provider test Improved Provider Unit Test (use Prophecy) May 22, 2016
@dbu dbu merged commit c605b26 into master May 23, 2016
@dbu dbu deleted the provider_test_prophecy branch May 23, 2016 07:37
@lsmith77 lsmith77 removed the wip/poc label May 23, 2016
@dbu
Copy link
Member

dbu commented May 23, 2016

👍

$this->document = $this->prophesize(NodeInterface::class);
$this->item = $this->prophesize(ItemInterface::class);
$this->nodeLoader = $this->prophesize(NodeLoader::class);
$this->session = $this->prophesize(SessionInterface::class);
Copy link

Choose a reason for hiding this comment

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

all those properties have not been defined

Copy link
Member Author

Choose a reason for hiding this comment

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

oops. my bad habit.

@wouterj
Copy link
Member

wouterj commented May 27, 2016

This should have been done in 2.0 imo, merge conflicts are very likely now.

@dantleech
Copy link
Member Author

So we should switch to FQNs instead of ::class?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants