Checks if the voter supports the given class.
public supportsClass ( string $class ) : true | ||
$class | string | A class name |
return | true | if this Voter can process the class |
/** * @dataProvider supportsClassProvider */ public function testSupportsClass($class) { $voter = new CoreVoter($this->repository); $this->assertTrue($voter->supportsClass($class)); }