Phalcon\Test\Acl\Adapter\DatabaseTest::testShouldCreateAdapterInstance PHP Метод

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

    public function testShouldCreateAdapterInstance()
    {
        $connection = $this->getConnection();
        $options = ['db' => $connection, 'roles' => 'roles', 'rolesInherits' => 'roles_inherits', 'resources' => 'resources', 'resourcesAccesses' => 'resources_accesses', 'accessList' => 'access_list'];
        $adapter = new Database($options);
        $this->assertInstanceOf(self::ADAPTER_CLASS, $adapter);
        unset($options['db']);
        foreach ($options as $property => $tableName) {
            $this->assertProtectedPropertyEquals($property, $tableName, $connection, $adapter);
        }
    }