PHP Class CakeDC\Users\Auth\Rules\OwnerTest

Inheritance: extends Cake\TestSuite\TestCase
Afficher le fichier Open project: cakedc/users

Méthodes publiques

Свойство Type Description
$fixtures

Méthodes publiques

Méthode 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 méthode

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

tearDown() public méthode

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

testAllowed() public méthode

test
public testAllowed ( ) : void
Résultat void

testAllowedBelongsToMany() public méthode

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

testAllowedShouldThrowExceptionBecauseEmptyAliasFromRequest() public méthode

test

testAllowedShouldThrowExceptionBecauseForeignKeyNotPresentInTable() public méthode

test

testAllowedUsingTableAlias() public méthode

test
public testAllowedUsingTableAlias ( ) : void
Résultat void

testAllowedUsingTableInstance() public méthode

test
public testAllowedUsingTableInstance ( ) : void
Résultat void

testNotAllowedBecauseNoDefaultTable() public méthode

test

testNotAllowedBecauseNotOwner() public méthode

test
public testNotAllowedBecauseNotOwner ( ) : void
Résultat void

testNotAllowedBecausePostNotFound() public méthode

test

testNotAllowedBecauseUserNotFound() public méthode

test

testNotAllowedBelongsToMany() public méthode

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

Property Details

$fixtures public_oe property

public $fixtures