8000 [Workflow] Introduce concept of SupportStrategyInterface by andesk · Pull Request #20751 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Workflow] Introduce concept of SupportStrategyInterface #20751

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

Closed
wants to merge 13 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[Workflow] removing deprecated test case for removed InvalidArgumentE…
…xception
  • Loading branch information
andesk committed Dec 17, 2016
commit 1e65b12db8692ae754036ac208ff44d37d6a9bcb
9 changes: 0 additions & 9 deletions src/Symfony/Component/Workflow/Tests/RegistryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,6 @@ protected function tearDown()
$this->registry = null;
}

/**
* @expectedException \Symfony\Component\Workflow\Exception\InvalidArgumentException
* @expectedExceptionMessage Expecting instance of SupportStrategyInterface or class name as a string.
*/
public function testAddUnsupportedSupportStrategy()
{
$this->registry->add(new Workflow(new Definition(array(), array()), $this->getMockBuilder(MarkingStoreInterface::class)->getMock(), $this->getMockBuilder(EventDispatcherInterface::class)->getMock(), 'workflow4'), array(Subject1::class, Subject2::class));
}

public function testGetWithSuccess()
{
$workflow = $this->registry->get(new Subject1());
Expand Down
0