| Total Complexity | 3 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class UserGroupTest extends TestCase |
||
| 15 | { |
||
| 16 | /** @var UserGroup - System Under Test */ |
||
| 17 | protected $sut; |
||
| 18 | |||
| 19 | /** @var RulesFactory|MockObject */ |
||
| 20 | protected $rulesFactoryMock; |
||
| 21 | |||
| 22 | public function setUp(): void |
||
| 23 | { |
||
| 24 | parent::setUp(); |
||
| 25 | |||
| 26 | $this->rulesFactoryMock = StubRulesFactory::createRulesFactory($this, ['forbidden' => new Forbidden()]); |
||
| 27 | |||
| 28 | $this->sut = new UserGroup($this->rulesFactoryMock); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return array |
||
| 33 | */ |
||
| 34 | public function createValidatorProvider(): array |
||
| 53 | ], |
||
| 54 | ]; |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @dataProvider createValidatorProvider |
||
| 59 | * |
||
| 60 | * @param array $data |
||
| 61 | * @param bool $expectedResult |
||
| 62 | */ |
||
| 63 | public function testCreateValidator(array $data, bool $expectedResult) |
||
| 72 | } |
||
| 73 | } |
||
| 74 |