PHP Class Phalcon\Test\Acl\Adapter\DatabaseTest

Author: Serghei Iakovlev ([email protected])
Inheritance: extends Codeception\TestCase\Test
Show file Open project: phalcon/incubator

Protected Properties

Property Type Description
$tester UnitTester UnitTester Object

Public Methods

Method Description
incorrectDbProvider ( )
incorrectOptionsProvider ( )
testShouldCreateAdapterInstance ( )
testShouldThrowExceptionIfDbIsMissingOrInvalid ( array $options )
testShouldThrowExceptionWhenOptionsIsInvalid ( string $expected, array $options )

Protected Methods

Method Description
_after ( ) executed after each test
_before ( ) executed before each test
assertProtectedPropertyEquals ( $propertyName, $tableName, Phalcon\Db\AdapterInterface $connection, Database $adapter )
getConnection ( )

Method Details

_after() protected method

executed after each test
protected _after ( )

_before() protected method

executed before each test
protected _before ( )

assertProtectedPropertyEquals() protected method

protected assertProtectedPropertyEquals ( $propertyName, $tableName, Phalcon\Db\AdapterInterface $connection, Database $adapter )
$connection Phalcon\Db\AdapterInterface
$adapter Phalcon\Acl\Adapter\Database

getConnection() protected method

protected getConnection ( )

incorrectDbProvider() public method

public incorrectDbProvider ( )

incorrectOptionsProvider() public method

testShouldCreateAdapterInstance() public method

testShouldThrowExceptionIfDbIsMissingOrInvalid() public method

testShouldThrowExceptionWhenOptionsIsInvalid() public method

public testShouldThrowExceptionWhenOptionsIsInvalid ( string $expected, array $options )
$expected string
$options array

Property Details

$tester protected property

UnitTester Object
protected UnitTester $tester
return UnitTester