PHP Class CakeDC\Users\Auth\Rules\OwnerTest

Inheritance: extends Cake\TestSuite\TestCase
Show file Open project: cakedc/users

Public Properties

Property Type Description
$fixtures

Public Methods

Method Description
setUp ( ) Sets up the fixture, for example, opens a network connection.
tearDown ( ) Tears down the fixture, for example, closes a network connection.
testAllowed ( ) : void test
testAllowedBelongsToMany ( ) : void Test using the Owner rule in a belongsToMany association Posts belongsToMany Users
testAllowedShouldThrowExceptionBecauseEmptyAliasFromRequest ( ) : void test
testAllowedShouldThrowExceptionBecauseForeignKeyNotPresentInTable ( ) : void test
testAllowedUsingTableAlias ( ) : void test
testAllowedUsingTableInstance ( ) : void test
testNotAllowedBecauseNoDefaultTable ( ) : void test
testNotAllowedBecauseNotOwner ( ) : void test
testNotAllowedBecausePostNotFound ( ) : void test
testNotAllowedBecauseUserNotFound ( ) : void test
testNotAllowedBelongsToMany ( ) : void Test using the Owner rule in a belongsToMany association Posts belongsToMany Users

Method Details

setUp() public method

This method is called before a test is executed.
public setUp ( )

tearDown() public method

This method is called after a test is executed.
public tearDown ( )

testAllowed() public method

test
public testAllowed ( ) : void
return void

testAllowedBelongsToMany() public method

Test using the Owner rule in a belongsToMany association Posts belongsToMany Users
public testAllowedBelongsToMany ( ) : void
return void

testAllowedShouldThrowExceptionBecauseEmptyAliasFromRequest() public method

test

testAllowedShouldThrowExceptionBecauseForeignKeyNotPresentInTable() public method

test

testAllowedUsingTableAlias() public method

test
public testAllowedUsingTableAlias ( ) : void
return void

testAllowedUsingTableInstance() public method

test

testNotAllowedBecauseNoDefaultTable() public method

test

testNotAllowedBecauseNotOwner() public method

test

testNotAllowedBecausePostNotFound() public method

test

testNotAllowedBecauseUserNotFound() public method

test

testNotAllowedBelongsToMany() public method

Test using the Owner rule in a belongsToMany association Posts belongsToMany Users
public testNotAllowedBelongsToMany ( ) : void
return void

Property Details

$fixtures public property

public $fixtures