public function RoleSplitFilterTest::filterWriteProvider in Config Role Split 8        
                          
                  
                        
File
 
   - src/Tests/RoleSplitFilterTest.php, line 33
Class
  
  - RoleSplitFilterTest 
- Class SplitFilterTest.
Namespace
  Drupal\config_role_split\Tests
Code
public function filterWriteProvider() {
  return [
    [
      'user.role.test',
      [
        'test' => [
          'can test',
          'something',
        ],
      ],
      [
        'id' => 'test',
        'permissions' => [
          'a tester',
          'can test',
          'without a doubt',
        ],
      ],
      NULL,
      [
        'split' => [
          'id' => 'test',
          'permissions' => [
            'a tester',
            'without a doubt',
          ],
        ],
        'fork' => [
          'id' => 'test',
          'permissions' => [
            'a tester',
            'without a doubt',
          ],
        ],
        'exclude' => [
          'id' => 'test',
          'permissions' => [
            'a tester',
            'can test',
            'without a doubt',
          ],
        ],
      ],
    ],
    [
      'user.role.test',
      [
        'test' => [
          'can test',
          'something',
        ],
      ],
      [
        'id' => 'test',
        'permissions' => [
          'a tester',
          'can test',
          'without a doubt',
        ],
      ],
      [
        'id' => 'test',
        'permissions' => [
          'a tester',
          'can test',
          'something',
          'without a doubt',
          'without problems',
        ],
      ],
      [
        'split' => [
          'id' => 'test',
          'permissions' => [
            'a tester',
            'without a doubt',
          ],
        ],
        'fork' => [
          'id' => 'test',
          'permissions' => [
            'a tester',
            'can test',
            'without a doubt',
          ],
        ],
        'exclude' => [
          'id' => 'test',
          'permissions' => [
            'a tester',
            'can test',
            'something',
            'without a doubt',
          ],
        ],
      ],
    ],
    [
      'user.role.test',
      [
        'test' => [
          'can test',
          'something',
        ],
        'other' => [
          'other',
        ],
      ],
      [
        'id' => 'test',
        'permissions' => [
          'a tester',
          'can test',
          'without a doubt',
        ],
      ],
      [
        'id' => 'test',
        'permissions' => [
          'a tester',
          'something',
          'without a doubt',
          'without problems',
        ],
      ],
      [
        'split' => [
          'id' => 'test',
          'permissions' => [
            'a tester',
            'without a doubt',
          ],
        ],
        'fork' => [
          'id' => 'test',
          'permissions' => [
            'a tester',
            'without a doubt',
          ],
        ],
        'exclude' => [
          'id' => 'test',
          'permissions' => [
            'a tester',
            'can test',
            'something',
            'without a doubt',
          ],
        ],
      ],
    ],
    [
      'user.role.other',
      [
        'test' => [
          'can test',
          'something',
        ],
      ],
      [
        'id' => 'other',
        'permissions' => [
          'a tester',
          'can test',
          'without a doubt',
        ],
      ],
      [
        'id' => 'other',
        'permissions' => [
          'other',
        ],
      ],
      [
        'split' => [
          'id' => 'other',
          'permissions' => [
            'a tester',
            'can test',
            'without a doubt',
          ],
        ],
        'fork' => [
          'id' => 'other',
          'permissions' => [
            'a tester',
            'can test',
            'without a doubt',
          ],
        ],
        'exclude' => [
          'id' => 'other',
          'permissions' => [
            'a tester',
            'can test',
            'without a doubt',
          ],
        ],
      ],
    ],
  ];
  
}