KMP PHP API Reference

WaiverTypePolicyTest extends BaseTestCase
in package

Waivers\Policy\WaiverTypePolicy Test Case

Note: KMP uses database-driven authorization with BasePolicy._hasPolicy() Policy classes extend BasePolicy with empty bodies, so authorization logic is tested through integration tests in the controller tests.

These tests verify the policy class exists and extends BasePolicy correctly.

Table of Contents

Properties

$WaiverTypePolicy  : WaiverTypePolicy
Test subject

Methods

testExtendsBasePolicy()  : void
Test policy extends BasePolicy
testImplementsBeforePolicyInterface()  : void
Test policy implements BeforePolicyInterface
testPolicyClassExists()  : void
Test policy class exists and can be instantiated
setUp()  : void
setUp method
tearDown()  : void
tearDown method

Properties

Methods

testExtendsBasePolicy()

Test policy extends BasePolicy

public testExtendsBasePolicy() : void

testImplementsBeforePolicyInterface()

Test policy implements BeforePolicyInterface

public testImplementsBeforePolicyInterface() : void

testPolicyClassExists()

Test policy class exists and can be instantiated

public testPolicyClassExists() : void

        
On this page

Search results