forked from KnpLabs/KnpUserBundle
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathGroupManagerNoneTest.php
More file actions
42 lines (35 loc) · 1.08 KB
/
GroupManagerNoneTest.php
File metadata and controls
42 lines (35 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/*
* This file is part of the FOSUserBundle package.
*
* (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FOS\UserBundle\Tests\Model;
use FOS\UserBundle\Model\GroupManagerNone;
use PHPUnit\Framework\TestCase;
class GroupManagerNoneTest extends TestCase
{
/**
* @dataProvider methodsProvider
* @expectedException \RuntimeException
*/
public function testMethods($name, $arguments)
{
$manager = new GroupManagerNone();
call_user_func_array(array($manager, $name), $arguments);
}
public function methodsProvider()
{
$group = $this->getMockBuilder('FOS\UserBundle\Model\GroupInterface')->getMock();
return array(
array('deleteGroup', array($group)),
array('findGroupBy', array(array('id' => 1))),
array('findGroups', array()),
array('getClass', array()),
array('updateGroup', array($group)),
);
}
}