[FrameworkBundle] fixed brackets position in method calls
This commit is contained in:
parent
44ce4dd625
commit
b5863bc7e8
@ -191,8 +191,8 @@ abstract class FrameworkExtensionTest extends TestCase
|
|||||||
{
|
{
|
||||||
$container = $this->createContainerFromFile('workflows');
|
$container = $this->createContainerFromFile('workflows');
|
||||||
|
|
||||||
$this->assertTrue($container->hasDefinition('workflow.article', 'Workflow is registered as a service'));
|
$this->assertTrue($container->hasDefinition('workflow.article'), 'Workflow is registered as a service');
|
||||||
$this->assertTrue($container->hasDefinition('workflow.article.definition', 'Workflow definition is registered as a service'));
|
$this->assertTrue($container->hasDefinition('workflow.article.definition'), 'Workflow definition is registered as a service');
|
||||||
|
|
||||||
$workflowDefinition = $container->getDefinition('workflow.article.definition');
|
$workflowDefinition = $container->getDefinition('workflow.article.definition');
|
||||||
|
|
||||||
@ -210,8 +210,8 @@ abstract class FrameworkExtensionTest extends TestCase
|
|||||||
);
|
);
|
||||||
$this->assertSame(array('workflow.definition' => array(array('name' => 'article', 'type' => 'workflow', 'marking_store' => 'multiple_state'))), $workflowDefinition->getTags());
|
$this->assertSame(array('workflow.definition' => array(array('name' => 'article', 'type' => 'workflow', 'marking_store' => 'multiple_state'))), $workflowDefinition->getTags());
|
||||||
|
|
||||||
$this->assertTrue($container->hasDefinition('state_machine.pull_request', 'State machine is registered as a service'));
|
$this->assertTrue($container->hasDefinition('state_machine.pull_request'), 'State machine is registered as a service');
|
||||||
$this->assertTrue($container->hasDefinition('state_machine.pull_request.definition', 'State machine definition is registered as a service'));
|
$this->assertTrue($container->hasDefinition('state_machine.pull_request.definition'), 'State machine definition is registered as a service');
|
||||||
$this->assertCount(4, $workflowDefinition->getArgument(1));
|
$this->assertCount(4, $workflowDefinition->getArgument(1));
|
||||||
$this->assertSame('draft', $workflowDefinition->getArgument(2));
|
$this->assertSame('draft', $workflowDefinition->getArgument(2));
|
||||||
|
|
||||||
@ -293,8 +293,8 @@ abstract class FrameworkExtensionTest extends TestCase
|
|||||||
{
|
{
|
||||||
$container = $this->createContainerFromFile('workflow_with_multiple_transitions_with_same_name');
|
$container = $this->createContainerFromFile('workflow_with_multiple_transitions_with_same_name');
|
||||||
|
|
||||||
$this->assertTrue($container->hasDefinition('workflow.article', 'Workflow is registered as a service'));
|
$this->assertTrue($container->hasDefinition('workflow.article'), 'Workflow is registered as a service');
|
||||||
$this->assertTrue($container->hasDefinition('workflow.article.definition', 'Workflow definition is registered as a service'));
|
$this->assertTrue($container->hasDefinition('workflow.article.definition'), 'Workflow definition is registered as a service');
|
||||||
|
|
||||||
$workflowDefinition = $container->getDefinition('workflow.article.definition');
|
$workflowDefinition = $container->getDefinition('workflow.article.definition');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user