Psecio\PropAuth\EnforcerTest::testPolicyNameNotFoundDenies PHP Метод

testPolicyNameNotFoundDenies() публичный Метод

Test that an exception is thrown when the policy is not in the set on a "denies" call
    public function testPolicyNameNotFoundDenies()
    {
        $policySet = PolicySet::instance();
        $subject = new Subject((object) ['username' => 'ccornutt']);
        $en = new Enforcer($policySet);
        $en->denies('policy1', $subject);
    }