| @@ 77-86 (lines=10) @@ | ||
| 74 | * @expectedException \InvalidArgumentException |
|
| 75 | * @covers SWP\Bundle\MultiTenancyBundle\Command\CreateOrganizationCommand |
|
| 76 | */ |
|
| 77 | public function testExecuteWhenDefaultTenantExists() |
|
| 78 | { |
|
| 79 | $this->command->setContainer($this->getMockContainer(new Organization())); |
|
| 80 | $this->commandTester = new CommandTester($this->command); |
|
| 81 | ||
| 82 | $this->commandTester->execute([ |
|
| 83 | 'command' => $this->command->getName(), |
|
| 84 | '--default' => true, |
|
| 85 | ]); |
|
| 86 | } |
|
| 87 | ||
| 88 | /** |
|
| 89 | * @covers SWP\Bundle\MultiTenancyBundle\Command\CreateOrganizationCommand |
|
| @@ 102-111 (lines=10) @@ | ||
| 99 | * @expectedException \InvalidArgumentException |
|
| 100 | * @covers SWP\Bundle\MultiTenancyBundle\Command\CreateTenantCommand |
|
| 101 | */ |
|
| 102 | public function testExecuteWhenDefaultTenantExists() |
|
| 103 | { |
|
| 104 | $this->command->setContainer($this->getMockContainer(new Tenant())); |
|
| 105 | $this->commandTester = new CommandTester($this->command); |
|
| 106 | ||
| 107 | $this->commandTester->execute([ |
|
| 108 | 'command' => $this->command->getName(), |
|
| 109 | '--default' => true, |
|
| 110 | ]); |
|
| 111 | } |
|
| 112 | ||
| 113 | /** |
|
| 114 | * @covers SWP\Bundle\MultiTenancyBundle\Command\CreateTenantCommand |
|